Uploads
MMO\edms\helpers · 1 symbol · generated 5 Oct 2026
Uploads
Uploads.php:18The uploads in progress, in a folder of their own ($folder), which only the server's account reads: the server keeps what an upload is and where its bytes are, a client only knows the upload's id. A chunk is only taken where the previous one stopped, and never past the size the upload started with. An upload that made its file remembers it until it expires, so a client that did not hear the answer to its last chunk gets it again.
- Namespace
MMO\edms\helpers
Index
| folder readonly | ||
| append($upload, $offset, $bytes) | Append $bytes to the upload, where it stopped | |
| finish($upload, $fileId) | The upload made the file $fileId: it remembers it, its bytes are the file's now | |
| get($id) | ||
| getOf($id, $client) | ||
| loopExpired($time) | The uploads nothing was received for since $time: those the garbage collector deletes | |
| metaFilename($id) | ||
| remove($upload) | Forget the upload, deleting its bytes | |
| start($owner, $name, $size, $labels, $attachment, $temporary) | Start an upload of $size bytes | |
| take($upload) | Take the bytes of a complete upload: the upload is forgotten, the file it returns is the caller's to move or delete | |
| write($filename, $content) | Write $content to $filename, which only the server's account reads | |
| __construct($folder) |
Properties1
folder
readonly- Type
- string
Methods11
append($upload, $offset, $bytes)
Uploads.php:77Append $bytes to the upload, where it stopped
finish($upload, $fileId)
Uploads.php:54The upload made the file $fileId: it remembers it, its bytes are the file's now
get($id)
Uploads.php:40getOf($id, $client)
Uploads.php:65loopExpired($time)
Uploads.php:126The uploads nothing was received for since $time: those the garbage collector deletes
metaFilename($id)
Uploads.php:133remove($upload)
Uploads.php:104Forget the upload, deleting its bytes
start($owner, $name, $size, $labels, $attachment, $temporary)
Uploads.php:29Start an upload of $size bytes
take($upload)
Uploads.php:115Take the bytes of a complete upload: the upload is forgotten, the file it returns is the caller's to move or delete
write($filename, $content)
Uploads.php:138Write $content to $filename, which only the server's account reads
__construct($folder)
Uploads.php:22| $folder | string | where the uploads are kept (created if needed) |