Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default MIME type Error

    I have a cffile upload which accepts only rtf files. The code on the action
    form is: <cffile action='upload' filefield='Form.file_upload'
    destination='D:\inetpub\wwwroot\etc...' accept='application/rtf'> When I attach
    an rtf file I get the message: The MIME type of the uploaded file
    'application/octet-stream' was not accepted by the server. <br>Only files of
    type 'application/rtf' can be uploaded. <br>Verify that you are uploading a
    file of the appropriate type. Can someone explain what
    application/octet-stream is and why it appears in the error message when it is
    not included in the accept definitions? Would be enormously grateful, as ever.

    colesc8 Guest

  2. Similar Questions and Discussions

    1. Verity Collection Mime type
      I am indexing a ntext field in a SQL server 2000 database that contains partial html and/or plain text. On my dev and staging servers I can search...
    2. MIME type for .dat
      i am using CFFILE to upload a tab delimited text file with a .dat extension and i want to restrict the file type to this using the accept argument...
    3. Mime Type for swf when using cffile?
      I have been using cffile to upload PDF flyers when entering a training event on my company's website. I now want to upload swf flyers made from...
    4. Incorrect mime type
      I've been using CFFILE to upload files with the accept type set to "text/*" to upload RTF files. Recently, some users are getting an error message...
    5. MIME-type to file extension
      Hello. Is there any facility that will help one map a MIME-type to a file extension or extensions? E.g. 'image/jpeg' should map to ('jpg',...
  3. #2

    Default Re: MIME type Error

    The documentation I was using to do the form was for ColdFUsion 7. I was using
    ColdFusion MX. In the accept type I changed from 'application/rtf' to
    'text/richtext'. It worked fine. Hope this maybe useful to anyone suffering a
    similar problem

    colesc8 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139