Skip to main content
sujeesh_lal
Participant
April 20, 2009
Question

Mime type Issue docx

  • April 20, 2009
  • 2 replies
  • 7422 views

Unable to upload docx files from systems which does not have ms office 200

Code : -
<cffile action="upload"
               filefield="browsefile"
               destination="#variabes.path#"
               nameconflict="makeunique"                        

accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document,              

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
           
Also added mime type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" in IIS

Still getting error.

Please help?                

    This topic has been closed for replies.

    2 replies

    Inspiring
    April 22, 2009

    What is the error message you are receiving?

    Inspiring
    April 23, 2009

    I also would like to see the error message you get, but I'll take a guess as to what the root of the problem is.  I suspect that computers without Office 2007 installed do not associate your expected MIME type with the docx file.  The accept attribute is constraining what MIME types are valid and the value being submitted is not one of these values.  Try removing the accept attribute from the CFFILE tag.  Instead of relying on the MIME type provided by the browser to verify you have a docx file check the uploaded file for the expected file extension.

    sujeesh_lal
    Participant
    April 28, 2009

    Got the error message

    The MIME type of the uploaded file application/octet-stream was not accepted by the server.

    <br>Only files of type application/vnd.openxmlformats-officedocument.wordprocessingml.document,

    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet can be uploaded. <br>Verify that you are

    uploading a file of the appropriate type.

    While uploading a docX and XlsX files.

    sujeesh_lal
    Participant
    April 21, 2009

    Sorry,  Its not MS office 200 its MS office 2007

    Please help me its urgent

    Thanks