Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Amazon S3 and WP eStore Questions
- This topic has 11 replies, 2 voices, and was last updated 13 years, 7 months ago by GraphicBass.
-
AuthorPosts
-
March 24, 2011 at 12:59 am #3031GraphicBassMember
I’m finally getting around to using an Amazon S3 account I set up two years ago to host my large downloads, but now I’m trying to figure out a few things. These may not be strictly WP eStore-related, but perhaps an S3 expert can help…
1. Checking my my uploads in my bucket, I see that the file names are not as they were when I uploaded, but something like: Del-2011-03-11-23-17-17-18HM4WZEM5QPMB46YG02. I now have no idea what that file actually is! Is there a way to discover the true file name, or do I need re-upload, keeping a separate record of File Name/S3 name (or download it and look at it)?
2. The article about S3 integration on the TNT website refers to S3 links as looking like this: “as3tp://bucket.s3.amazonaws.com/object”. However, the link as actually displayed in my object list uses “https://”. Am I correct in assuming that since this is what Amazon says is the link, it is correct?
Thanks!
gary
March 24, 2011 at 1:20 am #30618wzpModerator1. I don’t know why the file name is different from what you think you uploaded 2 years ago. You can try renaming the file, in the bucket; or you can downloaded it and see what it is.
2. The as3tp:// scheme is local to eStore. When eStore sees it, it knows that it should be converted into an expiring URL request. When the buyer is transferred to the S3 server, it is converted into an appropriate http:// or https:// request.
Remember to ensure that your objects are private. Before the S3 Integration feature, people were using S3 to store files, but the only way to use eStore with it back then was to make the objects public.
March 24, 2011 at 1:38 am #30619GraphicBassMemberwzp, thanks for the reply.
I did set my S3 for private.
The S3 account is two years old, but I uploaded the files just recently when I realized I was filling up my wen server, and when I went to check, I saw only those odd file names I referenced in #1.
After doing a search, I discovered an application (S3Hub for Mac OSX) that lets me see all files in the bucket, including a “subbucket” or subdirectory I had made. I believe the off files were remnants of files I uploaded into the bucket root, but then changed my mind and deleted them.
I deleted the entire bucket, then created a new on for the subdirectory I wanted.
I then uploaded a test file using S3Hub, then grabbed the URL, which looked like this “Deleted by admin”. So now I have a readable URL and know what the file contains.
So from what you’re saying, after I plug this URL into the appropriate place for that product, WP eStore will convert to the proper URL with security credentials to hand off to Amazon.
Correct?
March 24, 2011 at 1:42 am #30620wzpModeratorWhen you set the product URL in eStore, the correct URI should be:
Deleted by admin
When eStore generates the encrypted link, it will convert the as3tp:// back into http://
March 24, 2011 at 1:46 am #30621wzpModeratorDon’t forget to setup your keys in the settings page…
March 25, 2011 at 4:06 pm #30622GraphicBassMemberThanks, wzp, for correcting my misunderstanding about the URL for the eStore product link. I would have fouled it up for sure.
Yes, I did enter my two keys into the settings page.
Now on to test a couple of products.
gary
March 27, 2011 at 4:43 pm #30623GraphicBassMemberOK, I’m testing the download links from S3. How can I verify that the download is coming from my S3 bucket, and not from my own server?
Thanks!
gary
March 27, 2011 at 5:05 pm #30624wzpModeratorEnable the debug logs. look in the download_manager_debug.log file. Instead of the usual method dispatch messages you will see as3tp dispatch messages.
March 28, 2011 at 11:38 pm #30625GraphicBassMemberChecked the log. Here’s what I have:
===
[03/28/2011 11:27 PM] – Status : Resolved DL file path =
Deleted by admin
[03/28/2011 11:27 PM] – Status : Dispatching DL method = 1
[03/28/2011 11:27 PM] – SUCCESS : DL completed with no server-side errors detected.
[03/28/2011 11:32 PM] – Status : Unresolved DL file path =
Deleted by admin
[03/28/2011 11:32 PM] – Status : Resolved DL file path =
Deleted by admin
[03/28/2011 11:32 PM] – Status : Dispatching DL method = 1
[03/28/2011 11:32 PM] – SUCCESS : DL completed with no server-side errors detected.
[03/28/2011 11:37 PM] – Status : Unresolved DL file path =
Deleted by admin
[03/28/2011 11:37 PM] – Status : Resolved DL file path =
Deleted by admin
[03/28/2011 11:37 PM] – Status : Dispatching DL method = 1
===
The download link is:
Deleted by admin
It’s pulling from my server rather than Amazon’s. I double-checked my AWS S3 access key and secret access key and they are correct in Add-on Settings. It also appears to be processing the link three times.
Any ideas?
gary
April 14, 2011 at 6:29 am #30626GraphicBassMemberI’ll see what I can find elsewhere to debug; obviously I’m entering the link incorrectly in eStore settings.
gary
April 14, 2011 at 10:37 am #30627wzpModeratorIn the product URL, you must specify the URL as as3tp:// instead of http:// so that eStore knows to use S3 instead of your server.
Examples of product URL that will invoke S3…
as3tp://bucket.s3.amazonaws.com/object
as3tp://bucket.s3.amazonaws.com/folder/object
as3tps://bucket.s3.amazonaws.com/folder/folder/object
as3tps://public@bucket.s3.amazonaws.com/object
Replace “bucket,” “folder,” and “object” as appropriate.
April 23, 2011 at 1:44 am #30628GraphicBassMemberSorry for the delay in answering. Been bogged down with other projects. I’ll work on this when my eyes are fresh in the morning. Thanks for the info!
gary
-
AuthorPosts
- You must be logged in to reply to this topic.