We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [s3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
32 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 ...
0
votes
0answers
21 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
29 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
155 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
31 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 ...
3
votes
1answer
168 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
45 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
97 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, ...
4
votes
2answers
374 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
1answer
4k 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
718 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
82 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
44 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?
2
votes
0answers
87 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
115 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?
1
vote
2answers
451 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?
0
votes
1answer
368 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
297 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
166 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 ...
2
votes
1answer
72 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 ...
1
vote
1answer
178 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 }}" /> ...
0
votes
2answers
186 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 ...
2
votes
2answers
91 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
165 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
205 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
218 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
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 ...
5
votes
1answer
524 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
433 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
927 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 ...
4
votes
2answers
298 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 ...
3
votes
1answer
204 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 ...
2
votes
1answer
268 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. ...
0
votes
1answer
770 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
194 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
0answers
131 views

Issue Updating Asset Index:S3 Product Downloads

We recently added a large file (3gb) to our S3 location, and upon updating the assets index, the file is not being recognized. The file is accessible and we have tested download directly. ...
2
votes
1answer
619 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 ...
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-...
10
votes
2answers
2k 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
663 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 ...
4
votes
0answers
541 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 ...
1
vote
0answers
79 views

Render image transforms on the staging server

Are normal workflow involves developing the site locally but making all the database level changes (fields and data) on the sever. The trick has always been assets. We don't bother syncing assets, ...
3
votes
2answers
175 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 ...
1
vote
1answer
113 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 ...
12
votes
2answers
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?
3
votes
1answer
885 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 ...
5
votes
1answer
570 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 ...
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 ...
1
vote
0answers
123 views

Amazon S3 folder path doesn't seem to affect file uploads

I'm using the amazon s3 asset source which all connects and works very well, the only trouble is that the assets field folder path is not respected. I have a bucket called 'client' and in there we ...
0
votes
1answer
185 views

Update Asset Indexes on Login

I'm using an assets directory with Amazon S3 and I have to manually update the indexes through the control panel after uploading files externally. Does anyone know if it is possible to do anything ...