2 Replies Latest reply on Apr 30, 2009 7:21 AM by Transfer files to S3

    Upload or Download files from Amazon S3

    Transfer files to S3

      I have downloaded the source code for S3E (http://www.adobe.com/devnet/air/flex/samples.html) which can be used to upload files to Amazon S3 or download files from Amazon S3. In readme.txt file, I found that it has the list of dependencies. I downloaded those files also from the location mentioned in the file 'readme.txt'.

       

         I added these files to the project I tried to run it, I got a compilation error says that "Access of possibly undefined property shouldCacheResponse through a reference with static type flash.net:URLRequest".

       

      Then I commented the line where I am getting error and I run it. I have provided the keys and I got the access for S3. Now I tried to download the file which is working good. But when I try to upload a file I got an error as below.

       


      ArgumentError: Error #2004: One of the parameters is invalid.
          at flash.net::FileReference/upload()
          at com.adobe.webapis.awss3::AWSS3/saveObject()

       


      Please guide me to work on it so that I can apply for our application. We are really interested to migrate to Adobe Air or Flex, so we are expecting better support from you.

       

      It will be very glad if you guide me to complete it successfully.

       

      FYI:
      I am working on Adobe Flex Builder 3, OS: XP Professional