ResumableUpload\ResumableUpload
Synopsis
class ResumableUpload
{
- // members
- private boolean $write_to_stream = false;
- private $tmp_stream = NULL;
- private boolean $file_is_ready = false;
- private string $upload_dir_path = '';
- private string $temp_dir_path = '';
- private string $log_dir_path = '';
- private string $ID = '';
- private string $fileName = '';
- private string $chunkNum = '';
- private string $chunkSize = '';
- private string $totalSize = '';
- private string $totalChunks = '';
- private string $relativePath = '';
- private string $absolutePath = '';
- // methods
- public void __construct()
- public void file_is_ready()
- public void getAbsolutePath()
- public void getFileName()
- public void getStream()
- public void getResumableIdentifier()
- public void process()
- protected void testChunk()
- protected void sendHeader()
- protected void setEmptyOrString()
- protected void _log()
- protected void rrmdir()
- protected void createFileFromChunks()
- public void getCleanFileName()
- protected void cleanFilename()
Members
private
- $ID
- $absolutePath
- $chunkNum
- $chunkSize
- $fileName
- $file_is_ready
- $log_dir_path
- $relativePath
- $temp_dir_path
- $tmp_stream
- $totalChunks
- $totalSize
- $upload_dir_path
- $write_to_stream
Methods
protected
- _log() — Logging operation - to a file (upload_log.txt) and to the stdout
- cleanFilename()
- createFileFromChunks() — Check if all the parts exist, and gather all the parts of the file together
- rrmdir() — Delete a directory RECURSIVELY
- sendHeader()
- setEmptyOrString()
- testChunk()