Copied to clipboard

Flag this post as spam?

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


  • Jorge 37 posts 119 karma points
    Oct 22, 2016 @ 17:37
    Jorge
    1

    Uploading PDF on media shows validation error

    Hi,

    I am using Umbraco v7.5.3 and I have this setting i my configSettings:

    <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,html,htm,svg,php,htaccess</disallowedUploadFiles>
    

    Ok so it is so clear that no "pdf" is on disallowed list, which means I am able to upload pdf on media section.

    But upon uploading I always received this validation error.

    enter image description here

    Bu the pdf was successfully uploaded and saved to /media/xxxx/xxx.pdf, the only problem here is the validation saying "The specified file type has been disallowed by the administrator" but its not.

    This is a problem because it can confuse our editors. Any idea?

  • keilo 568 posts 1023 karma points
    Dec 12, 2016 @ 07:45
    keilo
    0

    I just came across the same issue while user uploading a .pdf file

    have you found any solution to this? Umbraco version 7.5.4

    The umbraco.config section does not have any mention of pdf;

    <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,html,htm,svg,php,htaccess</disallowedUploadFiles>
    
  • keilo 568 posts 1023 karma points
    Dec 12, 2016 @ 08:23
    keilo
    0

    If you have a comma in the filename, removing and trying again seems to work.

    Not sure if its a bug, hopefully someone can shed some light on this. For clarification it was on Upload field.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies