Questions tagged [s3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Favicons not displayed when hosted with AWS S3

I'm a little new to web designing and I started off with editing a pre-existing bootstrap template. So when I host from local, I could see the favicons but after I uploaded all the files to Amazon AWS ...
1
vote
1answer
16 views

Sync existing local images Amazon S3

I installed "Amazon S3" in a website. Is there anyway so that I can sync existing local images to Amazon S3?
1
vote
1answer
38 views

AWS Serialisation error on front end

Getting the following error on a site I'm developing: Instances of craft\awss3\S3Client cannot be serialized Unsure if this is an issue with the Amazon S3 plugin or at my bucket's end. Any ideas ...
0
votes
0answers
13 views

Updated S3 library for Craft CMS 2

I've got a site stuck on an older version of Craft, v2. I'd like to switch to using S3 to store all my assets but I've ran into a problem. I cannot authenticate using the S3 api library, this is one ...
0
votes
0answers
20 views

Lower Quality Transform on S3 vs. Local

The same image served from S3 has much worse compression effects than when served locally. The S3 one is all pixelated when the local one is clean. I just drag the same source image back and forth ...
0
votes
0answers
21 views

Best multi-environment approach using AWS S3

I need some direction on how best to run multi-environments with Craft assets and static asset builds (JS, CSS, etc) going to S3. I have three environments: dev, staging, and production. Each have ...
0
votes
0answers
12 views

S3 Buckets, IAM, Cloudfront

I followed @nystudio107 post here about setting up CraftCMS with Amazon S3 and Cloudfront and it works great except I can only upload if I have all public access enabled on the S3 bucket? The article ...
12
votes
3answers
3k views

How to set up CloudFront for a Craft site

I'm now setting myself to learn about AWS. Has anybody documented their experiences with CloudFront and Craft?
1
vote
2answers
129 views

How do you setup CloudFront in P&T S3 plugin & how do you know if it works?

I have the P&T Amazon S3 plugin. It's connected to my S3 bucket. It stores a few test .PDF files. It is working. I am able to access the files - and the URL is that of my S3 bucket - i.e., ...
1
vote
1answer
20 views

Amazon S3 plugin uploading to different directory

I was using Amazon S3 with Craft 2 fine, now after updating and installing the plugin I am having issues. We use a folder inside our bucket as the root Assets location - e.g. /bucket-name//folder ...
1
vote
1answer
19 views

Image thumbnail generation (on S3/Cloudfront integration) returns blank when first generated

For a client site with S3/Cloudfront integration, we are seeing that images will not be able to load for the first time if they have not been generated before. I'm guessing this is because it takes ...
0
votes
0answers
28 views

Best practice for organizing assets, locally and in S3?

Asset organization "best practice" question: for a new site, I had planned to reuse as many fields as possible between sections. Now I see that means that I'm not able to separate uploads from ...
4
votes
2answers
479 views

“An unknown error occurred” in assets screen

I have a number of assets resources all set to upload to the same amazon s3 bucket. Two of my four assets resources show "An unknown error occurred" twice when I view them in /admin/assets. The ...
1
vote
2answers
75 views

Thumbnails broken in CP after migrating images to AWS S3

I migrated my images over to AWS S3 using the Amazon S3 plugin; however, now I'm seeing that the thumbnails in the CP are broken, and a brokenimage is displayed. The full size images display fine in ...
10
votes
2answers
3k views

Correct IAM settings for Amazon S3 bucket

I'm trying to setup an Asset source on S3, but i'm having trouble getting the correct permissions. This is my current policy file: { "Version": "2012-10-17", "Statement": [ { ...
1
vote
1answer
36 views

Advice on entry form file uploads and S3

Just planning out an entry form that includes a file upload field – an assets field hooked up to an S3 bucket. I see some documentation on entry form assets here, but need some advice on getting this ...
2
votes
2answers
4k views

Incorrect content/mime-type on S3 SVG upload

I've setup an S3 asset source for images and it's working well for everything but SVGs. SVGs are uploaded with the default content-type of binary/octet-stream where the correct content-type would be ...
1
vote
1answer
227 views

Amazon S3 Images not showing up in Assets

I'm developing locally and adding images to my Amazon S3 bucket. I have the same connection to the bucket on my remote environment. On my local environment, I can see the images I've uploaded, but on ...
1
vote
1answer
43 views

Is it possible to search an asset filename stored on a remote Amazon S3 volume?

I'm successfully using the .search element attribute to search asset filenames stored locally. {% set mediaExists = craft.assets.folderId('6').search('filename:' ~ vLogID|slice(0, 5)) %} Is it ...
1
vote
1answer
111 views

getPath() does not return subfolder for S3 asset source

I'm reading through the Craft docs in relation to the AssetFileModel. Looking at the getPath() method, this reads in theory that it should return the full path to the asset relative to the root, ...
1
vote
1answer
432 views

Saving user profile photos to S3

Is there a setting to get Craft to save user photos to S3 like a regular asset source?
3
votes
1answer
225 views

Moving Craft assets from one S3 bucket to another

I have the task of moving a large amount of assets ~50gb from one amazon s3 bucket to another on another AWS account. I've figured out how to copy the files via S3 COPY, but I'm just wondering will it ...
1
vote
1answer
52 views

Uploading assets to different locations based on environment

I'm currently working on a new Craft CMS website for my company. We're using Elastic Beanstalk for hosting, which means that saving assets to file on the server isn't really viable- they get ...
1
vote
1answer
5k views

Why do I get Access denied on s3 asset source images?

I have created an s3 bucket in aws and added the correct permissions and user group etc. I have added the below policy: { "Version": "2012-10-17", "Statement": [ { "Sid": "...
1
vote
1answer
867 views

Craft 3 error on upload fopen() tempuploads “failed to open stream: No such file or directory”

I'm on Craft 3 and I've just switched some of my asset sources to S3. I'm developing on a local instance, and it all seems to be working. However, I needed to reconnect a couple images in my homepage ...
3
votes
2answers
178 views

Multiple Environments Multiple S3

Hi is there a way that we can manage the S3 bucket and configuration from craft general default config per envirenmont? We are doing automated deployments to different envirenmonts which migrate the ...
4
votes
2answers
312 views

Multi-Environment S3 Asset Paths

If I have three environments; local, dev, and live, and want assets to be setup like this: local: stored in a local directory (/public/uploads) dev: stored on S3 dev bucket live: stored on S3 ...
1
vote
1answer
340 views

Local vs Amazon S3 asset paths in multi-environment config

I'm looking to pull assets from a local folder when developing locally, and an S3 folder when on staging/production. Is this possible? It looks like no, but I'm hoping that's not the definitive ...
1
vote
1answer
46 views

Enabling Assets Image Edit Option for Assets in Amazon S3

What do I need to do in order to enable Image Edit option for Assets stored in Amazon S3?
0
votes
2answers
194 views

S3/No buckets showing

Done this a couple of times before so not sure what's going on, but I'm trying to hook up S3. I have the bucket/group/policy/user all setup. But when I enter Access key ID and Secret access key in ...
1
vote
2answers
489 views

How to store S3 credentials in environment variables?

For a Craft 2 S3 asset source, access keys are expected to be entered in from the Control Panel. Is there a way to supply the access key and secret through environment variables instead?
2
votes
0answers
93 views

“Missing” assets from large S3 asset source

We have an S3 asset source with ~33k images. In the admin, quite a few aren’t completely loaded (see image below). Users are able to add these to entries but they don’t display on the front end. ...
1
vote
0answers
143 views

What's the best way to move a lot of assets from local to S3 and keep relations [duplicate]

My client has a catalogue website with a big amount of assets. What's the best way to move the assets from local to Amazon S3?
0
votes
1answer
418 views

Update Asset Indexes for new files in s3 not working

We uploaded a lot of images to the S3 bucket that is connected to our assets in Craft, but when we run "Update Asset Indexes" on the settings page, those images aren't added to the assets in Craft. I'...
1
vote
1answer
179 views

Use subdomain for S3 assets in multi-site Craft installation

I have found the section in settings where I can set the URL Prefix for an asset source using a CNAME and pointing to the relative S3 bucket where the file actually lives but I am using a multi site ...
9
votes
1answer
2k views

Errors occuring with Assets and Amazon S3

I've just set up a new S3 account and want to move my assets folders there. But when I try to upload a file, I get the following error: S3::getObjectInfo(mikkelbang, shallowtree.png): [400] ...
1
vote
1answer
210 views

asset.first().getUrl('transform') not working for s3 asset - Craft CMS 2.6.2980

I can load the s3 image fine using the s3 base path and the craft cms filename that is saved in the craft cms database: <img src="{{cdnUrl}}/filepath/{{entry.Image.first().filename }}" /> ...
2
votes
1answer
86 views

Override the output of class S3AssetSourceType->getBucketList from a plugin

My issue is that for security I don’t have the s3:ListAllMyBuckets permission (as I can only see one bucket), but not list them. Craft needs this to function, so I need to manually force the list of ...
2
votes
2answers
93 views

Craft on Heroku with buckateer as a middleman for Amazon S3

We are using Craft on Heroku and wants to use S3. The problem is that we want to use a Heroku element (buckateer) as a middleman. Buckateer only gives you an IAM user without listbuckets permissions. ...
2
votes
1answer
169 views

S3 Asset uploading is hanging

I have setup a barebones install, and authenticated my bucket using the root user S3 credentials (just for now). Assets do not upload. I read a similar question here where the answer was that the ...
1
vote
1answer
211 views

Asset Upload via Plugin - S3 gets wrong Content-Type

I have a plugin that creates a local JSON file and uploads it to S3 using insertFileByLocalPath. The file is created, saved, and uploaded to s3 successfully. However, S3 detects the content-type to be ...
2
votes
2answers
227 views

Can't find S3 bucket using Craft Pro in trial mode

I am using the Craft Pro trial version and I want to use S3 for my Assets. However, I enter my credentials but the refresh button does not show my bucket. Also, when I try the refresh with wrong ...
5
votes
1answer
594 views

Using Craft environment variable for Asset source subfolder

I have an environment variable "bucketUrl" that I would like to use as the subfolder path in my S3 bucket. However, Craft is not parsing the variable. When I upload an image, I see in my S3 bucket ...
2
votes
1answer
514 views

Why are PNG images bigger in file size on the (S3) server?

We've got quite a few PNG image files for a site build, so naturally we're running them through tinypng to reduce size. This works great locally, but when we upload them to assets (S3) the file size ...
0
votes
1answer
822 views

Craft Assets on S3 bucket

Is there a way to use a local url when my assets are stored in an S3 bucket? I have a bucket I'm pointing to and in there I have a folder called backgroundImg with a background.png I'm trying to ...
1
vote
1answer
114 views

Bypass server memory_limits for Cloud Asset resources

I’m building a site that needs to upload large video files to Amazon S3. We have run into limitations with our host where they will only increase the memory_limit to 512mb and it’s likely that there ...
2
votes
1answer
692 views

Basic Amazon S3 Setup

I'm a total S3 noob but would like to get it set up so that I can store Assets there. So far, I've: created an AWS account (zing!) created a bucket named mybucket created a user in IAM myuser ...
2
votes
1answer
1k views

What is the value of hosting assets on Amazon S3? Best practices question

Starting a substantial project. There will be 100s of images on the site. Few are part of the general design, but there are slide carousels, photos, etc. I understand what S3 is, but I'm wondering ...
1
vote
1answer
209 views

Custom Asset Source Types - not possible

I would love to extend Craft with a custom AssetSourceType. However it looks like components of type 'assetSource' are not extensible (enableForPlugins = false). Is there a way to do this? Or can I ...
3
votes
1answer
216 views

Amazon S3 endpoint is wrong when accessing Asset info

Amazon S3 is returning the following error for a file in a bucket that is in Ireland (s3-eu-west-1): [PermanentRedirect] The bucket you are attempting to access must be addressed using the ...