A space to discuss online store customization, theme development, and Liquid templating.
I’m looking for a way to add an image attachment(file input basically) to contact form in Shopify without apps, but it seems like there is no option from Shopify to add file type input to your contact form. Can you share any thoughts on how it could be done?
Mb some way to create your own custom form in theme code? Implement forms from other resources(like iframe) etc.
I would like to hear any ideas even if they might be wrong. Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi Dezolutions,
The main challenge here is that Shopify's backend can't process file attachments that are added to native form components. You'll need an external service to handle the file upload and then send the file link or details to your email.
One possible solution is to use an external service (like AWS Lambda, or Vercel) to handle the file upload, store the file, and then forward the form data along with the file URL to you (and also maybe the customer).
If you used AWS for example the general process would be:
This is just the high-level approach but it is certainly doable via an external service. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi Dezolutions,
The main challenge here is that Shopify's backend can't process file attachments that are added to native form components. You'll need an external service to handle the file upload and then send the file link or details to your email.
One possible solution is to use an external service (like AWS Lambda, or Vercel) to handle the file upload, store the file, and then forward the form data along with the file URL to you (and also maybe the customer).
If you used AWS for example the general process would be:
This is just the high-level approach but it is certainly doable via an external service. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks!
Even though it's a little bit hard to accomplish it works fine!
Great to hear Dezolutions!!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This can also be accomplished through
* a digitalocean app (deploying api),
* a digitalocean space (storing files).
I developed a custom form and implemented it on multiple shopify stores.
Anyone can test form live too and see the result on their email.
Latest forms I have finished: Industry Discount Form, Custom Design Form, Contact Form.
If anyone interested I can build for him too, feel free to get in contact (at the top of form files).
The form has the following features:
* all fields (custom) available: including file-upload,
* a custom success message,
* a store-owner email template,
* a customer notification email template,
* google sheet integration,
* dynamic email sending,
* conditional logic,
* multiple forms and stores available,
* new features too can be integrated upon request.
Thanks,
Kind regards.
Hi - Saw your reply on this thread. Wonder if you might be able to help us add a file-upload submit functionality to this form down at the bottom? From what I've been reading, this might be a brittle feature in Shopify but would be curious about your experience with this. Thanks and all best, Gabe