badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Media upload error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22127
    mbrija
    Participant

    When uploading any media I am getting the following error:
    “xxx.jpg” has failed to upload due to an error
    Sorry, this file type is not permitted for security reasons.

    I am using Clean Retina free 1.3.5

    Settings>Media>Mime types all listed.

    GoDaddy support disabled the theme and uploaded a jpg. When theme is enabled, does not allow uploads.

    #22143

    hi mbrija,

    Once you activate the other WordPress default theme(twentyfifteen, twentyfourteen etc) and try to upload the image whether it works or not.

    Once you may try this below plugins too:
    http://wordpress.org/extend/plugins/pjw-mime-config/
    or
    https://wordpress.org/plugins/ap-extended-mime-types/

    View this tutorial for more info
    http://ask.xmodulo.com/this-file-type-is-not-permitted-for-security-reasons.html

    Thank you!

    #22205
    mbrija
    Participant

    Plugins do not help, not able to upload media. Activating twentyfourteen allowed me to upload media. Not the best solution.

    #22214

    Hi mbrija,

    Are you working on multisite? If yes then
    On your network admin => settings => general, you may had these as your allowed files types for uploading:
    jpg, jpeg, png, gif, doc, pdf, mp3, ppt, wmv, mp4, xls, ins, isf, te, xbk, notebook, m4a, ist, kmz, kes, mov, flp, avi, swf, wxr, xml, wav, fjsw, docx, pptx, xlsx, xml, m4v, max, kmz, zip

    Instead it should be like this:

    jpg jpeg png gif doc pdf mp3 ppt wmv mp4 xls ins isf te xbk notebook m4a ist kmz kes mov flp avi swf wxr xml wav fjsw docx pptx xlsx xml m4v max kmz zip
    

    The difference is the commas… it should NOT be a comma-separated list. If still not solving your issue then please send your temporary username and password at our email, We will take a look

    Thank you!

    #22260
    mbrija
    Participant

    I am not using multisite.

    #22266

    Hi mbrija,

    We are not facing this problem. If we found any problem relating to this issue then we will let you know. Could you once send your temporary username and passoword at our Email, we will try to help you. Don’t forget to send this forum link too. First of all deactivate all the plugins that you have installed in your dashboard. Some times some plugins may also restict to upload the images. If still the same problem then,

    Just add this code inside wp-config.php file
    define('ALLOW_UNFILTERED_UPLOADS', true);

    This code inside functions.php file

    add_filter('upload_mimes', 'pixert_upload_types');
    function pixert_upload_types($existing_mimes=array()){
    $existing_mimes['jpg'] = 'images';
    return $existing_mimes;
    }

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.