We need a multiple-file-uploading system using HTML5 File API. (small and big files, up to 1GB, server side is PHP)
Big files should be spliced by chunks, to not depend on upload_max_size / post_max_size server settings.
Max size of chunk should be set in config file to allow us control this value.
Files should be uploaded with original names in certain folder (see below).
System should resume uploads in case of interrupted upload.
Your script should have such interfaces:
browse() - to select files for upload
deleteFile(n) - to delete file from list , n is ordinal number in list
resumeUpload(pass) - to resume not finished upload
startUpload(login, password, need to zip, upload folder) - to start uploading files
login, password - user data
need to zip - if files should be zipped in archive
upload folder - this is a folder where files should be uploaded
files should be uploaded according to this rule (folder to upload) :
Your script should call this js functions during upload:
onError(message) - to send message in case of error
onMessage(messaage) - to send message about the stage of upload
onUploadProgressed(percentage,bytes loaded,bytes total,files loaded,files total) - to display upload progress
forceZip(false\true) - to force zip
jsFault() - in case of fatal error
uploadFinished() - when upload finished
All messages should be placed in config file.
During the stage of development u can simulate flash with simple buttons.
Uploader must not overload resources of computer and be compatible with most servers.
Sample files for testing the uploader: [url removed, login to view]
1) zipping happens on server by php 2) login/pass comes from flash. no need to validate them