sb_file_upload_handler (simple_bridge v2.3.2)
View SourceHandler for file uploads
Summary
Functions
Completes the File
Getting the File data
Getting the temporary file name
File Upload Handler "memory"
Starting a new file
Receiving new appending data
File Upload Handler "temporary_file"
Functions
Completes the File
Completes the File and returns the new File upload handler state.
Getting the File data
This is empty for "temporary_file" handler and set by the "memory" handler.
Getting the temporary file name
This is empty for "memory" handler and set by the "temporary_file" handler.
File Upload Handler "memory"
the memory file upload handler is keeping the file in the memory while the file is smaller than get_max_memory_size(). When file is bigger this handler transforms to "temporary_file" handler.
Starting a new file
Starts a new file with an optional File upload Handler and a FileName. When no File upload handler is given the memory file handler is set as default.
Receiving new appending data
Receives a "chunk" of data from the file upload and returns the new File upload handler state.
File Upload Handler "temporary_file"
the temporary_file file upload handler is writing the uploaded files to a temporary file on the hard disk.