File block prevents .zip and other files from being uploaded to a blog #33187
Labels
[Block] File
Affects the File Block
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Description
I am unable to upload through File block any application/zip (.zip) files. Other zip-related extensions as well (i.e. application/epub+zip). File block claims that file type is not permitted for security reasons. In the same time uploading exactly the same files through Media section works like a charm.
All necessary conditions are met even high above expectations, i.e.:
ALLOW_UNFILTERED_UPLOADS
flag is set totrue
$existing_mimes['zip'] = 'application/zip';
is addedStep-by-step reproduction instructions
Expected behaviour
File is uploaded to Wordpress and correctly linked to File block.
Actual behaviour
File is not uploaded and "Sorry, this file type is not permitted for security reasons" error is displayed instead.
Screenshots
An animation showing that uploading the same file is not possible when uploaded directly to blog post and to File block, while is possible when doing the same in "Media" section of a blog network.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: