Copied to clipboard

Flag this post as spam?

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


  • Jason Espin 368 posts 1335 karma points
    Aug 20, 2014 @ 15:52
    Jason Espin
    0

    Cannot upload files to 7.1.4

    Hi all,

    I'm currently trying to upload a .pdf document via the Umbraco back office to the media section of Umbraco. I had some issue with this before and was able to modify the web.config and add these values to the httpruntime node:

    maxRequestLength="300000" executionTimeout="99999"

    However, when I try and upload a file to Umbraco I am now receiving the following error in Umbraco:

     Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/UmbracoApi/Media/PostSave
    with data:
    {"key":"contentItem","value":{"id":0,"properties":[{"id":0,"alias":"umbracoFile","value":{"selectedFiles":"perukatalognytlogo_1.pdf"}},{"id":0,"alias":"umbracoExtension","value":""},{"id":0,"alias":"umbracoBytes","value":""}],"name":"Peru Brochure","contentTypeAlias":"File","parentId":5614,"action":"saveNew"}}
    Contact your administrator for information. 
    

    as well as the following Javascript errors in Firebug:

    enter image description here

    Any ideas what may be causing this? I am able to upload images fine but cannot do so with files it seems.

  • Bjarne Fyrstenborg 1281 posts 3992 karma points MVP 8x c-trib
    Aug 20, 2014 @ 16:57
    Bjarne Fyrstenborg
    0

    Hi Jason

     

    It's a known issue when uploading files that includes underscore in the filename. I am not sure if the fix will be included in 7.1.5, but for now you can rename the file.

     

    / Bjarne 

  • Bjarne Fyrstenborg 1281 posts 3992 karma points MVP 8x c-trib
    Aug 20, 2014 @ 17:02
    Bjarne Fyrstenborg
    0

    I think it also happens with other characters : http://issues.umbraco.org/issueMobile/U4-5139

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Aug 20, 2014 @ 17:06
    Nicholas Westby
    0

    There is an issue due to be fixed in 7.2 (not 7.1.5): http://issues.umbraco.org/issue/U4-4483

    However, that issue says the problem is when the upload property alias contains an underscore, though you say the problem is when the filename contains an underscore. Not sure if the problem was misstated or if they're different issues.

  • Jason Espin 368 posts 1335 karma points
    Aug 21, 2014 @ 14:30
    Jason Espin
    100

    Turns out this was to do with the file size upload restrictions within IIS. The file uploads correctly now that I have upped this to a size that can never be reached. There are no issues with uploading a file containing an underscore that I have found so far.

Please Sign in or register to post replies

Write your reply to:

Draft