1 Reply Latest reply on Apr 7, 2007 1:15 AM by Newsgroup_User

    mime type

    JohnGree Level 1
      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
        • 1. Re: mime type
          Level 7
          #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