nikolaystrikhar / gutenberg-forms

The Next Generation WordPress Form Builder.
https://gutenbergforms.com
GNU General Public License v2.0
122 stars 27 forks source link

File Upload Formats Limitation #89

Open munirkamal opened 4 years ago

munirkamal commented 4 years ago

Here is a users feedback from Wp support froum.

Thank you for the file upload field <3. I don’t think it is a good idea to limit allowed formats if we are not able to include other formats. Everyday there is a new format available as technology updates and frankly, many important ones are missing. I may want to receive .pdfa, .zip, .rar, .xlsx, .ai, .psd, .bmp, .tiff, .xml, and 3000 other popular formats. Each one of them is going required by users if you choose to limit its diversity, because websites are used for different purposes.

Thel format limitation in place is necessary for a user to avoid possible spam and malicious files injection. So we must keep the limitation but can improve it.

Now, I think there may be two options to implement.

1) Enable the format control to accept any format which a user can define. So a user can put sny extension there like .pdfa, .zip, .rar, .xlsx, .ai, .psd, .bmp, .tiff, .xml, etc...

2) We may add an option to completely disable the format filter, in that case, any file format can be submitted via that file upload field.

Or maybe we implement both of the suggestions.

cristianraiber commented 2 years ago

@andyluak - take a look at this: https://ps.w.org/file-upload-types/assets/screenshot-1.png?rev=2243278

free plugin: https://wordpress.org/plugins/file-upload-types/

We could create a free extension that simply adds more file types to be enabled