ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old April 19th, 2004, 07:47 PM
Noel4DMB Noel4DMB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 216 Noel4DMB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 56 m 37 sec
Reputation Power: 5
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?

Reply With Quote
  #2  
Old April 19th, 2004, 08:08 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
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.

Reply With Quote
  #3  
Old April 19th, 2004, 08:15 PM
Noel4DMB Noel4DMB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 216 Noel4DMB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 56 m 37 sec
Reputation Power: 5
im trying to allow file uploads, but only in MSWORD and PDF format. i know msword is application/msword. Any idea what PDF is?

Reply With Quote
  #4  
Old April 19th, 2004, 08:47 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
I found the answer on Google in about 10 seconds:

application/pdf

Reply With Quote
  #5  
Old April 20th, 2004, 04:34 AM
stpaz stpaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 17 stpaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 51 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old April 20th, 2004, 08:53 AM
Noel4DMB Noel4DMB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 216 Noel4DMB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 56 m 37 sec
Reputation Power: 5
Quote:
Originally Posted by kiteless
I found the answer on Google in about 10 seconds:

application/pdf


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!

Reply With Quote
  #7  
Old April 20th, 2004, 08:55 AM
Noel4DMB Noel4DMB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 216 Noel4DMB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 56 m 37 sec
Reputation Power: 5
Quote:
Originally Posted by stpaz
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.


ah, good call. thanks for the help

Reply With Quote
  #8  
Old April 20th, 2004, 09:22 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
For future reference, a list of many MIME types:

http://www.ch.ic.ac.uk/chemime/

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > PDF Mime Type????


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway