Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kate 267 posts 610 karma points
    Nov 20, 2017 @ 19:58
    Kate
    0

    Cant upload mp3 file to Media

    Hi

    I can't upload a mp3 file to Media. The file is 7,7 MB, so I don't think is because it's to large. I have tried to insert the following in config:

    <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
    

    but that only made the site crash :-(

    Any ideas?

    I can see I have the same problem with mp4.

  • Nik 1614 posts 7260 karma points MVP 7x c-trib
    Nov 20, 2017 @ 21:25
    Nik
    100

    Hi Kate,

    So, by default Umbraco has an approximate maximum upload file size of 5MB so I suspect your MP3 is exceeding the maximum allowed request.

    If you look in webconfig you should see an element with the name "requestLimits" with an attribute maxAllowedContentLength. The values of this are in bytes so you'll need to convert it to MB to know if it isn't exceeding the limit.

    On top of that, there is also the httpRuntime element which has an attribute maxRequestLength. Check what value that has but remember this one is in KB not bytes

    Other than that, it would be worth checking that mp3 and mp4's havent been added to the disallowedUploadFiles setting in the umbracoSettings.config file. They aren't (I don't think) disallowed by default but if someone has changed that it would be worth checking.

    Nik

  • Kate 267 posts 610 karma points
    Nov 20, 2017 @ 23:10
    Kate
    0

    Hi Nik Thanks for your help. It worked :-) I didn't have the requestLimit in the webconfig but now I had something to search for and I found this artikel https://24days.in/umbraco-cms/2013/6-easy-configuration-tweaks/

Please Sign in or register to post replies

Write your reply to:

Draft