Copied to clipboard

Flag this post as spam?

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


  • Ennija 44 posts 126 karma points
    Apr 26, 2016 @ 13:20
    Ennija
    0

    Media upload error

    Failed: Cannot upload file System.Net.Http.MultipartFileData, it is not an approved file type

    I not cant upload html file. Where cant change media file upload type?

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Apr 27, 2016 @ 06:26
    Dennis Adolfi
    1

    Hi Ennija.

    You specify the disallowed upload filetypes in /Config/umbracoSettings.config.

    Look for the element disallowedUploadFiles and you will see that .html files are disallowed when you install umbraco. Just remove that filetype and you should be fine.

    <!-- These file types will not be allowed to be uploaded via the upload control for media and content -->
        <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,html,htm,svg,php,htaccess</disallowedUploadFiles>
    

    Best of luck to you!!

  • Ennija 44 posts 126 karma points
    Apr 27, 2016 @ 07:14
    Ennija
    1

    thanks it helped

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Apr 27, 2016 @ 07:16
    Dennis Adolfi
    100

    Great to hear Ennija. Have a great day and good luck with the rest of your Umbraco site! :)

Please Sign in or register to post replies

Write your reply to:

Draft