November 22, 2018 at 7:33 am #9917
Upload doesn’t work at all if I connect the plugin to an Amazon S3 Bucket.
Do you have any guidelines on how to configurate the bucket?
Given my current lack of documentation, I’m not even in the position to know if it doesn’t work because of a bug, or the bucket is not configured correctly.November 25, 2018 at 5:08 am #9937
Please read this info: https://najeebmedia.com/2012/04/30/n-media-file-uploader-add-on-for-amazon-s3/
Here are simple steps:
Set API key and Secret Key
Create Bucket on Amazon Account
Set Bucket Name in plugin settings
You also need to set region which you can found under your Bucket detail
You also need to check CORS Configuration under Permissions menu in Bucket and it should following value:
<?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>PUT</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>DELETE</AllowedMethod> <AllowedMethod>HEAD</AllowedMethod> <MaxAgeSeconds>3000</MaxAgeSeconds> <ExposeHeader>ETag</ExposeHeader> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration>November 26, 2018 at 4:00 am #9957
I updated the CORS settings but it’s still not working:
a.) What shall be the “access” of the bucket? It seems it can be “Public”, “Objects can be public”, or “Bucket and Objects not public” [note that we only want the owner of the files to have access]
b.) What do you mean for “Bucket Name”? It shall be the full name, for instance “US East (N. Virginia)”?
Note that I tried several options and nothing seem to work.
I think some settings (properties, permissions etc) are still missing… Maybe I need to set some specific Bucket Policy, or something else?November 27, 2018 at 3:57 am #9962
I think your issue is under b option:
US East is not bucket name it’s region, bucket is just like directory or space you create in S3. Please google on S3 bucket and you will get an idea how bucket is created, it’s really. And you cannot use Amazon S3 without Bucket.November 27, 2018 at 4:23 am #9963
sorry, I meant Region Name… I think the right one is “N. Virginia”, not “US East (N. Virginia)”, as it seems to at least try to load the file, when I use the shorter version.
However, even if it seems to upload (the bar becomes green), no file is sent to Amazon S3
I know very well what an Amazon Bucket is, we successfully use Amazon S3 since 2013. The problem is that even if update the CORS Configuration to what you suggest, it doesn’t work.
I think we are missing some Amazon S3 settings, either under “Permissions” or “Properties”. Could you please explain the exact configuration of your bucket?
This will be beneficial to anybody trying to use your addon.
CheersNovember 28, 2018 at 12:58 pm #9972
we are providing support in direct email.December 27, 2018 at 6:34 pm #10189
I am having same issue, my files are uploading to the file area in wordpress dashboard, but not going anywhere in S3.
Need to know configuration information for Amazon S3
1. Exact format of region name
2. CORS (is it as above?)
3. Permission settings required (does it have to be public?)December 30, 2018 at 2:13 pm #10196
You need to enter above CORS and make sure you have provided correct region. By the was we are fixing bug on your site via direct email communication.April 30, 2019 at 11:26 am #12071
It has been a long while for this topic, so we are closing this.
The topic ‘upload not working with Amazon S3’ is closed to new replies.