|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
PDF Mime Type????
Anyone know a list of acceptable mime types for the CFFILE tag? I want to allow PDF and msword. But i dont know what the correct format for PDF is. Any help?
|
|
#2
|
|||
|
|||
|
I'm not sure I understand what you are asking. Are you trying to use CFFILE to write MSWord and Adobe Acrobat files? I believe there is an XML DTD for Word documents but you'd have to look at microsoft.com for that (you might try doing to do this via XSLT). Adobe Acrobat files really can't be created via CFFILE (they are encoded). You'll need a third party answer like ActivePDF or something like CF_HTML2PDF.
|
|
#3
|
|||
|
|||
|
im trying to allow file uploads, but only in MSWORD and PDF format. i know msword is application/msword. Any idea what PDF is?
|
|
#4
|
|||
|
|||
|
I found the answer on Google in about 10 seconds:
application/pdf |
|
#5
|
|||
|
|||
|
If you ever get stuck on this again all you need to do is restrict the mime type to somthing you know e.g image/gif. and then try to upload you unknown file type.
you will get an error, but within it it will tell you what the mime type is. e.g. for a Winzip file cfcatch.message:Error processing CFFILE tag cfcatch.Type:UNKNOWN cfcatch.Detail:The MIME type of the uploaded file (application/x-zip-compressed) was not accepted by the server. |
|
#6
|
|||
|
|||
|
Quote:
really? I did a google search and came up with all sorts of programs for writing to PDF rather than uploading. but thanks for the help nonetheless! |
|
#7
|
|||
|
|||
|
Quote:
ah, good call. thanks for the help |
|
#8
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > PDF Mime Type???? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|