I am creating a form with the file upload feature. There is the option to choose the file type as either 'document' or 'image'. I would like to know exactly what file types are considered 'document' and which are 'image'. More importantly, it is possible to choose both? If not, this could be quite limiting. For example, I would like to give my users the opportunity to add either pdfs or jpgs but through the use of just one button/field.
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
![feature fixed.png](https://static.wixstatic.com/media/3bfa8a_f845e1016b8a49758acdd6edd6610c3b~mv2.png/v1/crop/x_0,y_2,w_852,h_508/fill/w_104,h_62,al_c,q_85,usm_0.66_1.00_0.01,blur_3,enc_auto/feature%20fixed.png)
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
I see that it has been a while since you've asked that, but it might help others in the future.
I've had the same problem and managed to get a work around -
Although you can't program the upload button to accept all file types, i have created a selection picker that allows the user to pick the desired file type, and then the picker will change the supported file type of the upload button.
Code attached might help you implement this in your site.
It basically says - If no selection was made then the button is disabled.
Then it assigns a file type to the button according to the user's selection.
It is not an ideal solution but i think it's a nice work around that allows users more freedom.
Thank you very much for your response, Liran. I will find an alternative solution!
Hi,
Unfortunately, you have to choose between the types (doc or image).
Regarding the formats... it is the same as the ones that you can upload as site owner.
for example, in file manager/images:
Liran.