2022 Developer Survey is open! Take survey.

Questions tagged [s3]

The tag has no usage guidance.

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

Assets uploaded only to temp folder (first upload only)

I have a Craft installation (v3.7.4) with an Amazon S3 plugin (v1.2.12). I have an asset field configured to upload to an Amazon S3 volume. IAM roles are properly configured, files get uploaded to S3 -...
user avatar
  • 1
2 votes
1 answer
92 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 ...
user avatar
1 vote
1 answer
97 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://...
user avatar
1 vote
1 answer
196 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 ...
user avatar
  • 21
0 votes
0 answers
166 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 ...
user avatar
1 vote
1 answer
58 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?
user avatar
1 vote
1 answer
38 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 ...
user avatar
1 vote
1 answer
52 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 ...
user avatar
  • 31
1 vote
2 answers
247 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 ...
user avatar
1 vote
1 answer
91 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 ...
user avatar
  • 854
1 vote
1 answer
55 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 ...
user avatar
  • 854
2 votes
1 answer
520 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 ...
user avatar
1 vote
1 answer
111 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 ...
user avatar
  • 836
3 votes
1 answer
373 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 ...
user avatar
  • 2,437
2 votes
2 answers
124 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 ...
user avatar
  • 21
1 vote
1 answer
155 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, ...
user avatar
4 votes
2 answers
622 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 ...
user avatar
  • 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": "...
user avatar
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 ...
user avatar
1 vote
2 answers
162 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., ...
user avatar
  • 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?
user avatar
2 votes
0 answers
133 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. ...
user avatar
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?
user avatar
1 vote
2 answers
529 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?
user avatar
  • 81
0 votes
1 answer
575 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'...
user avatar
  • 250
1 vote
1 answer
408 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 ...
user avatar
1 vote
1 answer
225 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 ...
user avatar
  • 201
2 votes
1 answer
102 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 ...
user avatar
1 vote
1 answer
286 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 }}" /> ...
user avatar
  • 121
0 votes
2 answers
212 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 ...
user avatar
  • 854
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. ...
user avatar
  • 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 ...
user avatar
1 vote
1 answer
245 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 ...
user avatar
2 votes
2 answers
251 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 ...
user avatar
  • 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 ...
user avatar
  • 43
6 votes
1 answer
840 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 ...
user avatar
  • 63
2 votes
1 answer
772 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 ...
user avatar
  • 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 ...
user avatar
  • 684
4 votes
2 answers
330 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 ...
user avatar
  • 584
3 votes
1 answer
220 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 ...
user avatar
  • 2,947
2 votes
1 answer
328 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. ...
user avatar
  • 171
0 votes
1 answer
920 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 ...
user avatar
  • 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 ...
user avatar
1 vote
0 answers
140 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. ...
user avatar
2 votes
1 answer
931 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 ...
user avatar
  • 438
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-...
user avatar
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": [ { ...
user avatar
  • 2,947
1 vote
1 answer
804 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 ...
user avatar
  • 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 ...
user avatar
1 vote
0 answers
88 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, ...
user avatar