advanced-forms icon indicating copy to clipboard operation
advanced-forms copied to clipboard

Option to zip up file attachments?

Open geeworthington opened this issue 4 years ago • 1 comments

Is it possible to zip up files or individual files on submission to be uploaded to the media library?

I am current working on a few sites where the customer requires the ability to upload .dxf files (3d drawing files).

These are considered harmful and will not be accepted as an upload (even when allowing the file types in various ways functions.php etc)

geeworthington avatar Nov 12 '20 15:11 geeworthington

Good question. I'm not sure if this is possible in any reasonable way, unfortunately. Largely because my plugin doesn't actually handle any uploads. That's left to ACF which to some degree leaves it to WordPress.

I think your best approach would be to find a way of having WordPress allow .dxf files. Are you certain that it's not possible to enable? My understanding is that it should be possible to enable any file type for uploads. What kind of error are you seeing?

fabianlindfors avatar Nov 19 '20 12:11 fabianlindfors