MIME type and PDF upload in Apex 4.2.1
D-FilesMar 18 2013 — edited Mar 18 2013Hi there,
a few days ago, we upgraded to Apex 4.2.1 and I wonder if there is a bug in the "File Browse..." item.
In an older version (don't know if 4.0 or 3.2) it all worked fine, but when I'm now uploading PDF files via the file browser, Apex inserts "application/download" or "text/html" as MIME type into apex_application_files.
Trying to download them logically crashs, because the browser gets the wrong MIME.
But just recognized with PDFs... Uploading e.g JPGs or TXTs get's the correct MIME type.
As workaround I'm hardcoding the MIME type as "application/pdf", if the file ends on ".pdf" but I would prefer to get it from the apex_application_files table...
Am I the only one with this problem or is it already known?
Thanks a lot
Daniel
PS:
Handle is already changed ;)
Edited by: 977470 on 18.03.2013 02:06