Questions tagged [s3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
114 views

Assets S3 Cache Duration and CP Thumbnails

What does everyone consider a sensible cache duration to use when using Assets with S3/Cloudfront? Is 3 hours sensible or should it be longer? Secondly, does this have any impact on the assets being ...
1 vote
1 answer
121 views

Generate transforms only working on default install (multi-site)

I have a multi-site setup running within Craft 3. Everything seems to be working nicely, except for image transforms. For example: The following transform on the default site works correctly: https://...
1 vote
1 answer
219 views

Assets (in assets folder) failing to load locally [Craft 2]

I'm trying to get my Craft 2 site running locally again (it worked at one point but now does not). I have gotten all the db related issues (seemingly) done and dusted and the admin loads fine, but it ...
  • 21
0 votes
0 answers
193 views

What's the recommended permissions configuration for AWS S3 media storage?

I'm hosting assets for Craft 2.9.3 site on AWS S3. I'm trying to figure out how to give the site (and its users) access to the files without making them broadly publicly available. I found a ...
1 vote
1 answer
85 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
1 answer
40 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
1 answer
57 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 ...
  • 31
1 vote
2 answers
284 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
1 answer
102 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 ...
  • 864
1 vote
1 answer
56 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 ...
  • 864
2 votes
1 answer
555 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
1 answer
121 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 ...
  • 846
3 votes
1 answer
399 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 ...
  • 2,462
2 votes
2 answers
130 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 ...
  • 21
1 vote
1 answer
158 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,041
4 votes
2 answers
636 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 ...
  • 428
1 vote
1 answer
6k 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
1 answer
1k 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
2 answers
167 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., ...
  • 891
1 vote
1 answer
48 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
0 answers
135 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
0 answers
237 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
2 answers
537 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?
  • 81
0 votes
1 answer
585 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'...
  • 250
1 vote
1 answer
414 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
1 answer
231 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 ...
  • 201
2 votes
1 answer
110 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
1 answer
293 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 }}" /> ...
  • 121
0 votes
2 answers
219 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 ...
  • 864
2 votes
2 answers
97 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. ...
  • 41
2 votes
1 answer
197 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
1 answer
249 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
2 answers
254 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 ...
  • 197
2 votes
2 answers
6k 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 ...
  • 43
6 votes
1 answer
854 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 ...
  • 63
2 votes
1 answer
802 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 ...
  • 61
2 votes
1 answer
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 ...
  • 608
4 votes
2 answers
336 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 ...
  • 584
3 votes
1 answer
222 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,957
2 votes
1 answer
330 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. ...
  • 171
0 votes
1 answer
937 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 ...
  • 293
1 vote
1 answer
219 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
0 answers
143 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
1 answer
963 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 ...
  • 468
1 vote
1 answer
2k 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
2 answers
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": [ { ...
  • 2,957
1 vote
1 answer
813 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,108
4 votes
0 answers
564 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
0 answers
90 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
2 answers
189 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 ...