Hello,
I created a QFileAsset with QFileAssetType::Pdf as acceptable file, and when uploading the pdf file the “Must be a Pdf” error appear, but with the same control if I upload another file which is not a pdf or not an image (so not an acceptable file type) the file uploaded successfully.
I verified why when upload pdf appear that error. In FF 3.0.18 when uploading pdf file, the mime type set to “application/force-download” and this mime type not in acceptable mime type array. I also tested this in IE where I get the correct mime type (application/pdf).
Also if I try to upload a file which is not a pdf the upload proccess run with success because most file mime type set to “application/octet-stream” which is in the acceptable mime type array when FileAssetType set to Pdf. This also happen in IE.
UPDATE:
Problem tested in FF 3.5.8 where the correct mime type set (application/pdf).
That is annoying if FF change mime types from version to version.
Attila