Amazon S3 FileBrowserContentProvider

39 posts, 0 answers
  1. Rohit
    Rohit avatar
    1 posts
    Member since:
    Jul 2014

    Posted 22 Jul 2014 Link to this post

    I am providing a path(existing on Cloud) to the radeditor which is already having some files and folders in it but Radeditor is not displaying the previously present files and folders. what am i doing wrong?
  2. Bonnie
    Bonnie avatar
    3 posts
    Member since:
    Jan 2013

    Posted 08 Aug 2014 Link to this post

    Just wanted to share an alternative to the Content Provider approach.  Our company did not want to use a provider that is no longer being actively developed or maintained (latest version is from 2009) because it would add risk to our project.

    We installed and tested TNTDrive (http://tntdrive.com/) on our server and it worked extremely well.  It allows you to map an S3 bucket as a network drive.  In IIS, you can then create a virtual directory which your application sees as a local directory. 

    The Telerik controls such as the FileExplorer and RadEditor see these directories as local, so there is no custom code to write - they just work as is.

    Hope this is helpful!
    Bonnie



  3. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 13 Aug 2014 Link to this post

    Hi Bonnie,

    Thank you for sharing this significant information with us and our community! It might turn to be a really good opportunity to everyone that does not want to implement a custom content provider for accessing Amazon S3 buckets.

    As a small token of gratitude for your efforts I have updated your Telerik points accordingly.

    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  4. Young
    Young avatar
    8 posts
    Member since:
    Nov 2012

    Posted 19 Jun 2015 Link to this post

    I tried running this code today and I received the message "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."

    I setup my access key, secret key, bucket name, and string[] viewPaths = new string[] { "code/" };

    'code' is a valid folder under my bucket.

  5. Young
    Young avatar
    8 posts
    Member since:
    Nov 2012

    Posted 19 Jun 2015 in reply to Mike Bridge Link to this post

    I do not see a reply to Mikes post.  Is there an update to this code based on the new Amazon SDK for .NET?     
  6. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 23 Jun 2015 Link to this post

    Hi Young,

    The code provided here should be considered only as example. When third party API have been updated, changed or removed, the corresponding code using this API should be manually updated as per to the changes.

    I suggest investigating the Amazon SDK for changes and re-implement the code for the code library item. If you are able to handle the situation and verify that updates are needed to the code here, you can provide them and earn some Telerik points as a reward for sharing knowledge with the Telerik community.

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Brian Pautsch
    Brian Pautsch avatar
    15 posts
    Member since:
    Jun 2009

    Posted 09 Feb Link to this post

    FYI - I just got this working but had to set the "Server" in both the class and ASHX:

    config.Server = "s3-us-west-1.amazonaws.com";

    One issue: When I upload an image, it uploads and the thumbnail shows properly, but when I double click to open it (or right click and select "Open"), it retrieves the file but shows as binary text. Any ideas on how to fix this?

    Thanks!

    Brian

  8. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 12 Feb Link to this post

    Hi Brian,

    Thank you for sharing your solution with us.

    As for the format of the images - this is expected as the images in Amazon are stored in a database-like structure. You can avoid this behavior either by disabling the opening of the files (like done here) or implement direct downloading of the images instead of previewing them as shown here:
    http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/applicationscenarios/filteranddownloadfiles/defaultcs.aspx

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  9. Andreas
    Andreas avatar
    1 posts
    Member since:
    Oct 2016

    Posted 15 Oct Link to this post

    Hi,

    The link to the file seems to be broken. Any advice on how I can get the s3 content provider?

Back to Top