Skip to main content

File upload fails

Symptom​

A visitor adds a file to a File or Image field, and the file isn't accepted. One of these happens:

  • A red message appears under the file's name, and when the visitor clicks Submit, the field says "This field has incorrect files".
  • The visitor clicks Submit and the field says "Please wait... the upload is in progress."

Checks​

Read the red message under the file's name first: it usually names the cause.

  1. Check first: the file type is allowed. The message is "Selected file has none of allowed extensions:" followed by the types the field takes, such as jpg,pdf. Go to Content → WebForms → Manage Forms, click the form's name, click Form Builder and click the field. On the Validation tab, read Allowed File Extensions. If the visitor's file type is in the list, this isn't the cause. An Image field has no such list: it takes only jpg, jpeg, gif and png, so a phone photo in heic is refused.
  2. The file isn't too large. The message is "Selected file exceeds allowed size:" followed by the limit, such as 500 kB. On the same tab, read Allowed File Size. When it's empty, the store's limit applies: File Upload Limit (KB) for a File field (5000 KB unless you changed it) or Image Upload Limit (KB) for an Image field (1000 KB unless you changed it), in Stores → Configuration → MageMe Extensions → WebForms → Uploads & Media. If the file is smaller than the limit, this isn't the cause. 1000 KB is about 1 MB.
  3. The upload finished. While a file is uploading, its card shows a progress bar, and Submit answers "Please wait... the upload is in progress." If the card shows the file's size, the upload finished and this isn't the cause. A large file on a slow connection can take a while.
  4. The file name uses only Latin letters. The message says the name "has non-latin characters". Go to Stores → Configuration → MageMe Extensions → WebForms → Uploads & Media. If Restrict Uploaded File Names is No, this isn't the cause. While it's Yes, a name such as résumé.pdf is refused.
  5. Your server accepts the file. The message is "Error uploading file" for every file, or says the file "exceeds allowed limit" with a size such as 2M that you didn't set. The file didn't reach WebForms: the server that runs your store has its own upload limit, lower than the one you set in WebForms, or something in front of the store refused the upload. Nothing in the admin shows the server's limit. If the message is one from checks 1 to 4, this isn't the cause.

Expected result​

Add the file again in a private browser window. Its card shows the file's size with no red message, the form is sent, and the submission page in the Inbox lists the file.

Fix​

  • If check 1 failed: add the type to Allowed File Extensions, one per line, such as png, and click Publish Changes. For phone photos in heic or webp, use a File field instead of an Image field.
  • If check 2 failed: raise Allowed File Size on the field, or leave it empty and raise the store's limit, then publish the form. If the visitor can, they can also send a smaller file.
  • If check 3 failed: ask the visitor to wait until the file's size shows on its card, then click Submit.
  • If check 4 failed: select No in Restrict Uploaded File Names and click Save Config, or ask the visitor to rename the file with Latin letters only.
  • If check 5 failed: ask your developer or hosting provider to raise the server's upload limits above your WebForms limit, and to check whether a firewall or security service refuses uploads to your store.
  • Still not working: contact MageMe support with the form name, the file's type and size, and the exact message.

Applies to WebForms 4Last reviewed October 14, 2026