Questions tagged [assets]

Files managed by Craft, stored in physical folders or (with Craft Pro) on Amazon S3, Rackspace Cloud, and Google Cloud.

Filter by
Sorted by
Tagged with
4
votes
1answer
681 views

searching assets - using related entry slug

For a website I'm currently building I have a bunch of photos within an Assets folder (folder id of 5) that I have linked to "Photographer" entries within a "Photographers" structure. I am now trying ...
13
votes
2answers
2k views

Is it possible to move an entire asset source?

S3 is seemingly costing us a lot. While it has its benefits, I think we could do with moving images from s3 to the server we are running the site from. How difficult/impossible of a task would that be?...
2
votes
1answer
1k views

How do I pull the first image from the first entry of the first subcategory?

I just want to apologize in advance if I'm not quite understanding how the element criteria model works. I know that's the basis of Craft but I learn best by doing and this StackExchange has been an ...
5
votes
3answers
448 views

Multi-Environment Uploads

I am curious how those of you who use a multi-environment development process handle user upload directories? If you use a remote database and one developer uploads some test content, the shared ...
6
votes
3answers
807 views

How do you require specific dimensions when uploading an image?

I think the transform feature is great, although in my case I need to request that certain images be uploaded at specific dimensions to an assets field. (i.e. 500 x 300 pixels). These dimensions will ...
1
vote
1answer
525 views

Rename asset file upon upload?

Is there any way to rename files upon there upload to an assets field? I know I can hit the options of the file and rename manually, but was wondering if there was a way to do this automatically? i....
4
votes
1answer
425 views

Order Assets by date field

I have a page which lists assets by source. I've added a date field to the asset. How can I order the assets by this field so that the most recent is first? Here is my markup: {% set assets = craft....
8
votes
1answer
656 views

Is it possible to hook into image transforms?

I have a somewhat unique thumbnail need for a certain site. I need to watermark images with custom text (per image, not globally across the site). Is there a way to hook into the Craft image transform ...
18
votes
3answers
3k views

Allow user to change or delete their photo for their profile from the front end

How can I allow a user to change or delete their photo for their profile from the front end? I currently have a form setup for the user to edit their profile but I want to load their current photo (...
4
votes
1answer
508 views

Slow Assets Listing in CP

Our client has created a lot of folders and sub-folders to keep their assets organised. I would guess they've made around 700 to 800!! (Basically two folders for each post) The assets page in the CP ...
13
votes
5answers
6k views

Image transforms returning cpresources url

I'm trying to get Craft to render an image transform defined in the control panel. No image is added to the "filelocation/_transformhandle" folder and returns the url "/cpresources/transforms/98" ...
5
votes
1answer
748 views

How can I set my upload path by date?

I have a directory structure in place that I'd like to mimic in Craft. File uploads are first categorised by Year, then by month so the directory sturcture is like such -- 2014 ---- 01 ---- 02 ---- ...
5
votes
3answers
2k views

Is it possible to have secure (private) assets?

For a member only area I would like to secure (private) assets: The files should not be accessible when not logged in The file download URL should be randomly generated and should expire after some ...
-7
votes
1answer
152 views

Would this be possible using Craft Pro? [closed]

I'm building a large social media site. We've already coded user registration and profiles using Code Igniter. Situation 1: a) We'd like to offer each user their own blog. We envision using a ...
4
votes
1answer
1k views

Why I can't upload a favicon.ico as an Asset?

I'm unable to upload the favicon.ico thought Craft because it says: Upload failed for favicon.ico. The error message was: ”Error uploading the file: This file type is not allowed“ Why does that ...
17
votes
2answers
3k views

How do I force Craft to regenerate assets transform?

I had to add an image size in the assets transforms; all my pics were previously uploaded, but when I use getUrl('headIpad'), it makes urls like this: http://host.com/cpresources/transforms/4/ ...
4
votes
1answer
2k views

How to create subfolders in the Assets view?

I can't find any information on this issue, but I'm not seeing any way to create subfolders in the Assets view of the control panel. I just see all of my images with no folders. Is this feature ...
2
votes
1answer
1k views

How do I pull related entries and assets?

I'm having a bit of a hard time wrapping my head around exactly how to work with both Relationships and Assets. Here is my current problem that I seem to be stumped on, i'm sure once I get this going ...
7
votes
2answers
4k views

Frontend upload for images, mp3s and video?

I would like to allow users of our site to be able to upload images, mp3's and video from the front-end. Can I do this with the entry form template easily enough? I was thinking maybe I could use ...
9
votes
1answer
923 views

How do I save a Matrix field with an asset block programmatically? [closed]

I'm trying to submit an Entry programmatically from the front end. Everything works flawlessly, except, the asset fields never save. I've dug and dug through the Entries, Elements, and Content ...
4
votes
1answer
711 views

Trouble with Restrict to Single Folder and Upload Location

I have a Matrix field with two blocks. Each block has an assets field that I'm trying to set to restrict to uploads to a single folder and setting the upload location to {slug}. Basically what I'm ...
17
votes
3answers
3k views

What are the advantages/disadvantages of the various cloud storage solutions for assets?

When setting up a new assets source, Craft allows you to natively connect to one of these cloud storage solutions (assuming you're using the Craft Pro edition): Amazon S3 Google Cloud Storage ...
13
votes
6answers
11k views

When uploading assets what determines the maximum file size?

When I upload an asset I get an alert window stating my file size is to large. I have increased the file size in the general.php config file larger than the file size, however I keep getting a error. ...
6
votes
1answer
571 views

Asset thumbnail size in Entries

Is there a quick an easy way to change the asset thumbnail size when it's attached to an entry? By default this is quite small and restrictive and would like to show a more representative version of ...
13
votes
2answers
2k views

How do we create a pre-defined Asset upload field in a plugin that integrates with the native Craft Assets file manager?

We've got a plugin. It doesn't have the ability to add custom field types. We're pre-defining all of the fields. One of the fields needs to be an Asset field. A user should be able to upload an ...
1
vote
1answer
94 views

Where to store asset backups for plugin?

I need to store revisions of assets for a plugin I am working on, what is the best / most robust location to store them? I need the location / files to: Always be writable. Not removed when / if ...
6
votes
3answers
578 views

Extending Assets with oEmbed video references

Disclaimer: I'm new to Craft, making the jump from WordPress and looking for implementation advice to a specific requirement. In addition to images, I would like to be able to manage oEmbed video ...
2
votes
1answer
237 views

Why can't I set the 'type' of my Asset source?

When I try to add an asset source under Admin > Settings > Assets, I can't see the type-field on the 'Create a new Asset source'-page. Why not?
9
votes
1answer
1k views

Can I accept file uploads using the Craft Guest Entries plugin?

Can I accept file uploads using the Craft Guest Entries plugin? Using input type="file" doesn't seem to be working.
3
votes
1answer
181 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?
9
votes
4answers
526 views

What are the Pros and Cons to each image transform technique?

In Craft you can do two types of image transforms: 1. Control Panel Transforms: Via: Settings → Assets → Image Transforms 2. Inline Transforms in your Templates I’m currently using 100% inline ...
11
votes
3answers
3k views

Is there a way to force Assets to redo transforms?

Client has uploaded a number of severely badly lighted photographs for a 'staff' section of a site and these all have had a 'staffThumb' transform applied to it on the sites pages. I corrected the ...
6
votes
1answer
692 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?

1
12 13 14 15
16