[wp-trac] [WordPress Trac] #52210: File URL gets saved even when upload fails
WordPress Trac
noreply at wordpress.org
Tue Feb 9 17:49:59 UTC 2021
#52210: File URL gets saved even when upload fails
--------------------------+------------------------------
Reporter: kkroeger93 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 5.6
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by 9primus):
Hello kkroeger93 ! I can not performed this bug , when I have only
'ALLOW_UNFILTERED_UPLOADS' in wp-config.php , frontend js code stops me to
download SVG image , but when I have 'ALLOW_UNFILTERED_UPLOADS' in wp-
config and
----
{{{#!php
<?php
add_filter('plupload_default_settings', function ($settings) {
if (defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS)
{
unset($settings['filters']['mime_types']);
}
}}}
in my functions.php file its work fine
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52210#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list