Copied to clipboard

Flag this post as spam?

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


  • Chris Day 34 posts 107 karma points c-trib
    May 29, 2015 @ 15:37
    Chris Day
    0

    Can't see or upload images in Umbraco

    Hi There,

    Firstly, many thanks for building this package :)

    I have just installed it and attempted to set it up, however I am getting a few errors:

     

    • I have uploaded my existing media folder to Amazon S3, and I can retrieve and display images on the front end of the website in my views
    • When I navigate to the media section in the backoffice, none of the images appear (grey boxes in place of them)
    • When I try to upload images in the media section, it says "Internal Server Error"
    • When I try to upload images in a node via a media picker I get an infinite progress bar (no error message)

    I have triple checked that the settings in my FileSystemProviders.config are correct.

    Many thanks in advance for any help... 

     

  • Ali Sheikh Taheri 469 posts 1645 karma points c-trib
    May 29, 2015 @ 15:47
    Ali Sheikh Taheri
    0

    Hi Chris,

    You are welcome.

    Basically all the media files need to exist on the web server (root folder of your website) and Amazon S3.

    When you upload an image, it is saved locally and then a copy of that image is being transferred to Amazon.

    So if you don't see them in CMS then the files don't exist on the root folder of your website.

    In order to be able to help you could you please tell me which version of Umbraco you are using?

    One more thing to check, have you updated Amazon S3 information in /Config/FileSystemProviders.config ?

    Thanks for using this package.

    Ali

  • Chris Day 34 posts 107 karma points c-trib
    May 29, 2015 @ 15:58
    Chris Day
    0

    Thanks Ali for the quick reply :)

    I am using Umbraco 7.2.5

    The media folder is present on my localhost too. This is an existing project I have been working on for a few months, so the local media folder was used previously.

    I have updated the /Config/FileSystemProviders.config.

  • Ali Sheikh Taheri 469 posts 1645 karma points c-trib
    May 29, 2015 @ 16:17
    Ali Sheikh Taheri
    0

    No worries :)

    To be honest I haven't tested this package on 7.2.5 yet and it might be something new.

    I will try to replicate this error this weekend on 7.2.5 and will keep you posted.

    However this package is open source and you can find the source code here in case you would like to investigate it yourself.

    Thanks

    Ali

  • Chris Day 34 posts 107 karma points c-trib
    May 29, 2015 @ 16:54
    Chris Day
    0

    Thanks Ali,

    I am a newbie to Umbraco, but perhaps tonight I'll have a go at installing this from the source code, so I can run in debug mode and find the problem.

  • Ali Sheikh Taheri 469 posts 1645 karma points c-trib
    May 31, 2015 @ 15:47
    Ali Sheikh Taheri
    0

    Hi Chris

    I've just done another test with Umbraco 7.2.5 and everything works as expected.

    have you set this flag to true ? <add key="awsSaveMediaToS3" value="true" /> in the config file.

    I still have no idea why you don't see the images in the CMS because with this package all the images in the CMS are loaded from the local storage and not the cloud!

    Could you please have a look at the console to see if there is any error that can give us more info?

    Thanks

    Ali

  • Chris Day 34 posts 107 karma points c-trib
    Jun 02, 2015 @ 10:58
    Chris Day
    0

    Just about to give this a second attempt... will post again shortly :)

  • Chris Day 34 posts 107 karma points c-trib
    Jun 02, 2015 @ 11:16
    Chris Day
    0

    Got an error message from the back office trying to load the images:

    Could not load file or assembly 'AWSSDK, Version=1.5.18.0, Culture=neutral, PublicKeyToken=9f476d3089b52be3' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    

    Do I need to add a reference to AWSSDK or is that included as part of the Umbraco package?

  • Ali Sheikh Taheri 469 posts 1645 karma points c-trib
    Jun 03, 2015 @ 12:59
    Ali Sheikh Taheri
    100

    Are you testing it on your local machine?

    When you install the package, it will drop that dll in your bin folder so you should take it out and add a reference to that dll so when you deploy to other environment it can be transferred?

    Also do you have any other version of that dll in your project? anything related to Amazon S3 ?

    Ali

  • Chris Day 34 posts 107 karma points c-trib
    Jun 04, 2015 @ 16:55
    Chris Day
    0

    Not been working on this today, however tomorrow I will have a look at this and confirm it is fixed once I sort out the references :)

    Many thanks Ali...

  • Chris Day 34 posts 107 karma points c-trib
    Jun 05, 2015 @ 12:09
    Chris Day
    1

    It works now. Just ran this and it sorted the issue out:

    Install-Package AWSSDK -Version 1.5.18.0
    
  • Ali Sheikh Taheri 469 posts 1645 karma points c-trib
    Jun 05, 2015 @ 12:29
    Ali Sheikh Taheri
    0

    Thanks for the update. and I am glad you could make it working :)

    Cheers

    Ali

Please Sign in or register to post replies

Write your reply to:

Draft