Mime type of chunked uploaded file

Upload core product.
Post Reply
jacklevy
Posts: 1
Joined: Tue Jan 26, 2010 2:51 pm

Mime type of chunked uploaded file

Post 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?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Mime type of chunked uploaded file

Post by support »

Could you check "chunkbase" parameter passed withing each chunk request.

Post Reply