Questions tagged [s3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
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": [ { ...
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] ...
6
votes
2answers
1k views

Can Craft easily be hosted across multiple servers?

We are looking at Craft as our CMS but would love to be able to scale the installation across multiple Amazon EC2 instances. Is this possible? Can all assets uploaded to Craft be pushed to S3? Is ...
6
votes
1answer
628 views

Are private S3 assets possible?

Is it possible to have an asset source pointing to a non public S3 bucket? Maybe also with expiring link urls?
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 ...
5
votes
1answer
607 views

Renaming files on Amazon S3 through Craft backend

I've read somewhere you can't rename files on Amazon S3, which might explain my not being able to rename assets hosted on S3? Or, have P&T found a way around this and I've just not set the right ...
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 ...
4
votes
1answer
162 views

Assets and S3 - Reduced Redundacy Storage

is it possible for S3 bucket assets to use reduced redundancy storage?
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 ...
4
votes
0answers
548 views

Saving entries in plugin: How are Assets relations handled? [closed]

I'm importing an existing ExpressionEngine site's content into Craft, using content exported in XML on the EE site, and stepping through each entry. This includes hooking up Assets files, where the ...
3
votes
1answer
179 views

How can I check the progress of a large Assets indexing job?

I just uploaded 48,000 photos to Amazon S3, added the bucket to Craft, and am now trying to add them to the Assets library. Where can I see the logs for this?
3
votes
1answer
955 views

Can I move a local Asset to S3 and keep relations?

I have a Assets folder (local) with 100 assets in it. Now I have a new Assets folder connected to Amazon s3. Can I just drag-n-drop my assets from my local folder over to my s3 folder and keep all ...
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 ...
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 ...
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 ...
2
votes
1answer
168 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 ...
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 ...
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
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 ...
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 ...
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 ...
2
votes
1answer
691 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
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
1answer
290 views

Using Amazon S3 with Craft 2.x in Frankfurt region

According to this post it's not possible to use Craft 2.x with Amazon S3 within the Frankfurt region. As Craft 3 is still not near release it would be nice to have some sort of a fallback solution. ...
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
1answer
710 views

Do Remote Assets (ie. S3) have file paths?

New to remote assets, and can't seem to find any information on accessing remote assets via filepath in areas twig can't be used, such as CSS. I'd like to be able to use those same assets in CSS files ...
1
vote
1answer
226 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
2answers
128 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
431 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?
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 ...
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 ...
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
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?
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?
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
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
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
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 ...
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 ...
1
vote
1answer
42 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
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
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
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 ...
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 ...
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 }}" /> ...
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 ...
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 ...
1
vote
1answer
1k views

S3 Asset uploading hangs

I am having an issue with uploading assets to S3 from Craft. So far I have taken the following steps: Create permission policy and attached to group containing craft user: { "Version": "2012-10-...
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 ...