Page 1 of 1

Mime type of chunked uploaded file

Posted: Tue Jan 26, 2010 2:57 pm
by jacklevy
We would like to save details of each uploaded file in a database, including its MIME type, so it can be used in the HTTP header of subsequent downloads. Unfortunately, when a file is chunked, the file type as delivered in the $_FILES array is that of each chunk and not that of the whole file. Our PHP installation does not have the fileinfo extension, so the type can't be determined that way. A suggestion: would it be possible to give the first chunk the original file name, without a number, so its type is correctly delivered?

Re: Mime type of chunked uploaded file

Posted: Tue Jan 26, 2010 7:52 pm
by support
Could you check "chunkbase" parameter passed withing each chunk request.