Mime type of chunked uploaded fileMime type of chunked uploaded fileWe 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 fileCould you check "chunkbase" parameter passed withing each chunk request.
|