Ajax Contact Form with Attachment...
  • Still not able to send .docx file.

  • Asked by Mohit Soni on 11th Oct 2018

I added MIME type to allow .docx file but still getting an error to upload a .docx file. Can you please help me with this.

  • 1
var allowed_file_types = ['image/jpeg', 'image/pjpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'];
  • https://api.adorable.io/avatars/40/2477266412.pngWhat is the error? I just added the and it is working ok. – Saran
Add Answer

1 Answer

    • Andrea Ballerino

    To fix the problem, simply add this line to the PHP sender: header('Content-type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');

    Can You Answer this? Help us answer the question!

      • Answer
      Supports basic Markdown syntax.