PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

docx converted to zip

  1. I have an employment application form where people upload their resumes. All docx files (and only docx files) get converted to a zipped folder with xml files.

    I found another post on this and it looked unresolved. It's not my email client because I also have the problem when getting the file from the WP Dashboard.

    Any ideas?

    http://www.dawnfarm.org/about/employment

    Posted 13 years ago on Monday November 22, 2010 | Permalink
  2. Just figured out that the problem is limited to chrome.

    Posted 13 years ago on Monday November 22, 2010 | Permalink
  3. Gravity Forms uses the default file upload fields for each browser. If the files are being converted, that's strictly a browser-related issue and not something we can change.

    Posted 13 years ago on Monday November 22, 2010 | Permalink
  4. I'm okay as long as I can use another browser. Weird though. I have no problem opening a docx file when it's emailed to me.

    Thanks

    Posted 13 years ago on Monday November 22, 2010 | Permalink
  5. I think it might be a problem with the mime-types on the server. I uploaded a docx file using your form, then downloaded it and checked the mime-type in the headers from your server, and it came back as:

    Content-Type: text/plain; charset=UTF-8

    I uploaded the same docx file (using a Gravity Form) to a server of mine, and the mime type in the headers came back:

    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document

    If the mime type is incorrect I think the browser guesses, and a docx file is a container that includes a zip archive. Maybe Chrome is guessing differently than other programs. The fact that it works when you receive a DOCX in your email program leads me to believe it's not your computer. It's not relying on the mime-type from your server at that point.

    Background info on the DOCX format:
    http://www.forensicswiki.org/wiki/Word_Document_%28DOCX%29

    To work around it on this server, you could require the resume in PDF or DOC format, or you might have to contact your host or sysadmin to have the mime-types updated, either globally or in your .htaccess file. The same problem will happen with any of the Office XML formats.

    How to fix it with .htaccess:
    http://www.webdeveloper.com/forum/showthread.php?t=162526

    p.s. you can delete my job application :-)

    Posted 13 years ago on Monday November 22, 2010 | Permalink