5
votes
Accepted
Asset Volume using Environment Variable on File System Path as literal string on upload
If you use environment variables, you have to be aware that you can't add anything to it in your fields. What this means is that $ASSET_ADHOC_PATH/website in your CP will not be parsed. If you use ...
5
votes
Accepted
What is "Temp Uploads Location" in Craft 3.2.10
That setting is basically saying, "where do you want your Assets to be stored while the related Entry is still being processed?"
Take a practical example... You are editing an Entry, and want to ...
4
votes
Accepted
Error on upload: "Impossible to create the root directory..."
I understand now within the context of you are using docker. Since docker creates a new file system separate from your computer's file system, you will want to run these commands on the docker ...
3
votes
Accepted
Enironment Variable being rendered literal
You can't append anything to the value if you use environment variables. You need to use aliases for this.
In you config/general.php, add this:
'*' => [
'aliases' => [
'assetBasePath'...
3
votes
Accepted
Unable to use credentials.json from .env file for Google Cloud Storage
In retrospect, this was actually fairly obvious but I guess the introduction of configuration files and their use of .env variables confused me.
If you want to use json file to authenticate to Google ...
2
votes
Enironment Variable being rendered literal
For my future self, the aliases mention by nstCactus are required to reside within the '*' global setting area of general.php
'*' => [
'defaultWeekStartDay' => 1,
'cpTrigger' => '...
1
vote
How to upload animated webp files?
ImagickException: data encoding scheme is not supported `/var/www/html/storage/runtime/temp/P0LY_Test60a2e191a91de2.16978634.webp' @ error/webp.c/ReadWEBPImage/338 in /var/www/html/vendor/...
1
vote
Asset file permissions issue hyperlane
In Craft, assets are always "absolute" paths to the webroot, not relative to the URL (although you can make it like that).
So in your example, @AssetPublicPath/images is going to be replaced ...
1
vote
Asset volumes with dynamic subfolder
For a field outside the Matrix, you can use {username} and for the one in the Matrix, use {owner.username} - see docs
You might need to run Utilities → Asset Indexes.
1
vote
Error on upload: "Impossible to create the root directory..."
Since this is the top result on Google for this error, I wanted to add that what fixed it for me (a non-docker user) was setting the permissions for the "/assets/images" directory to 775.
...
1
vote
When to create a new asset volume?
Should I just have a single Volume called "uploads" and then create the subfolders within the craft dashboard via Assets?
I think that's typically how people would set it up. You might run into some ...
1
vote
Best practice for volume aliases in config files
Ah, the power of commit history.
@brandon-kelly removed the volumes config section from the v3 docs back in February, mentioning
Environment variables solve the same problem better.
So it seems ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
volumes × 10assets × 7
craft3 × 1
templating × 1
matrix × 1
config × 1
image × 1
upload × 1
multi-environment × 1
user-profile × 1
assets-field × 1
environmentvariables × 1
storage × 1
env × 1