Closed mcfriend99 closed 7 years ago
Is it even working the example code in https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads?
https://github.com/Gargron/fileupload/issues/47#issuecomment-287022905
The mime type validation does not work.
Don't understand you. Are you saying I should simply implement my own validation?
@mcfriend99, @Paradinight is right.. There's no way the mime type validator would work with chucked uploads (the second time the upload is restarted ) because partially uploaded files usually have an invalid mime type since they are incomplete .. Hence validation would fail.
Resuming a partially uploaded file is a tradeoff between "usability and security "
*chunked
adelowo you could check the $_FILE mime type, if incorrect throw an error. After complete upload check the mime type again, but this time with php. The First check is for the usability and the second for the security.
Only the first chance in a chucked upload gets uploaded. Here is my code:
Getting Internerla Server error issue when the file size is higher than my maxChunckSize.
Here is my Javascript: