• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

mime type

Guest
Apr 07, 2007 Apr 07, 2007

Copy link to clipboard

Copied

hi i have a file upload using cffile, is there a way of diplaying the mime type on the action page

i am sure i have done this before but cant remember how?

the file is a csv, but i have a user that can not upload the csv, so i want to display the mime type he is trying to upload
TOPICS
Advanced techniques

Views

227

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 07, 2007 Apr 07, 2007

Copy link to clipboard

Copied

LATEST
#cffile.contentType#/#cffile.contentSubType#

will return type/subtype, i.e. text/csv

for the record, csv files have a whole bunch of mime types they can
carry, so make sure you include all of them in the accept attribute of
your cffile. some of those mime types are shared with other file types,
though...
google csv mime type to see list of mime types

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation