File attachments
What it does
Let customers attach files to a price request, for example a drawing, a parts list or a photo. You choose how many files they can add, how big each file can be and which file types are allowed. You set it up in Stores → Configuration → MageMe Extensions → HidePrice, in Price Request Form → File Attachments.
Before you start
- The price request form is turned on. See Set up the price request form.
Steps
Turn on attachments
-
Go to Stores → Configuration → MageMe Extensions → HidePrice.
-
Expand Price Request Form, then File Attachments.
-
In Enable File Attachments, select Yes. The other settings of the group appear.
-
Change the limits if you need to:
Setting Default What it does Dropzone Text Add files or drop here The text in the area where the customer drops or picks files. Maximum Files In Dropzone 5 How many files one request can have. Allowed File Extensions jpg, jpeg, png, gif, bmp, tiff, webp, pdf, doc, docx, txt, rtf, odt, xls, xlsx, ppt, pptx, zip, rar, 7z, tar, gz The file types the customer can attach. Separate them with commas. Allowed File Size (kB) 2048 The largest size of one file, in kilobytes. 2048 kB is 2 MB. Comment empty A text shown under the dropzone, for example which files you need. -
Click Save Config.

The place of the dropzone in the form is set in Fields Order. See Change the order of the fields. Every setting of this group is also listed in the File Attachments settings reference.
How files are checked
The store checks every file when it arrives, including files sent through the REST API and GraphQL. It refuses a file of a type that isn't in Allowed File Extensions or one over Allowed File Size (kB).
Files that could run as a program or a web page are always refused, even if you add their extension to the list. That covers, for example, .php, .exe, .js and .html files, and a script renamed to .pdf.
Unsent uploads
A file is uploaded as soon as the customer adds it to the dropzone, before the form is sent. If the customer leaves without sending, the store deletes the file later: once an hour, Magento cron removes uploads older than one hour that never became part of a request. See Privacy and personal data.
What you should see
-
The form has a dropzone with your Dropzone Text.

-
The customer can add up to Maximum Files In Dropzone files of the allowed types and size.
-
The files are listed under Attachments on the request page and are attached to the email your team gets. See Reply to a customer.
Limits
- The limits work per store view.
- The Allowed File Size (kB) limit applies to each file, not to all files of a request together.
- Your server has its own upload limit. Keep Allowed File Size (kB) below it: then the form itself stops a file that is too large and shows "Selected file exceeds allowed size" with your limit, for example "Selected file exceeds allowed size: 5120 kB". Ask your hosting provider for the server limit.
Troubleshooting
- The customer can't add a file. Check that its type is in Allowed File Extensions and that it's smaller than Allowed File Size (kB). Program and web page files are always refused.
- The dropzone doesn't show. Check that Enable File Attachments is Yes for the store view, and refresh the invalidated caches in System → Tools → Cache Management.
What's next
- Custom fields: add up to three fields of your own.
- Reply to a customer: see the attached files and answer the request.
- Privacy and personal data: how long uploaded files are kept.