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

Questions tagged [filesystem]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
139 views

PHP Fatal error during installation

I am trying to run craft inside a homestead box. The box boots and installs everything correctly, and when I navigate to http://localhost:8000/admin I see the install screen and can click through the ...
0
votes
0answers
16 views

Injecting filename into all templates?

I found a topic about getting the current filename for templates here: How can I make a template output its own filename? but I am curious, is there some way I can get the server to implement this ...
1
vote
1answer
139 views

Error: File to import not found or unreadable: ../../../../../lib/craftcms-sass/mixins

I have two Craft websites running locally and they both have broken css on the backend due to the error below. Every time I update it is temporarily fixed but after a few clicks or refreshes it's back ...
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
145 views

Cloudinary thumbnail creation for assets

I realized Craft 3 generates its own thumbnails and does not use Cloudinary to do this on the CP. My question is, how and where should I modify the JavaScript code, or what is the best practice to use ...
1
vote
0answers
218 views

For asset uploads, where should the 'temporary path" be created?

I just moved my Craft CMS site to production (MediaTemple DV) and I can't upload images to my asset sources. I get this error: Error uploading the file: there was a problem creating the temporary ...
2
votes
1answer
151 views

Lowercase filenames

I've been unable to find a config option for giving all uploaded files and their transforms lowercase filenames. Is this possible?
4
votes
2answers
867 views

Serve PDF file at url with variable

Is it possible to serve a file in a Twig template? I need to get a file (asset) from a global setting, and serve it at a particular URL. This code is close, but it seems that source() is the wrong ...
3
votes
1answer
350 views

Do assets have to be below public_html to access them in redactor?

I love that Redactor lets you choose existing entries, categories, and assets! I am trying to set up a 'Files' source whose File System Path would be something like /home/hostingaccount/craft/files ...
3
votes
2answers
724 views

Asset filename unicode normalisation?

We have a site deployed in Norway, and people have uploaded PDF-assets with Norwegian non-ascii characters in the filenames. Normally this works fine, the URLs are encoded like this and it works: ...
3
votes
1answer
1k views

Do I use Twig filters 'include' and 'extends' for localized site correctly?

I use regular file names for template structure from documentation for clearer understanding. I have the template structure: _layouts base.twig _includes header.twig body.twig foot.twig index....
2
votes
1answer
2k views

Force download of asset file from template

I have a template called download that receives an asset ID, looks it up and should force the browser to download the file. I've gotten this far with the {% headers %} tag, but I can't figure out how ...
3
votes
1answer
609 views

getResourcePath() for folders in a plugin

I have a plugin that has an folder inside of it's resources. I need to iterate through those files. To get the path, I tried craft()->resources->getResourcePath('folder-name'), but it seems to ...
0
votes
1answer
2k views

File upload fails without error

I try to upload a file larger than the 16 MB Craft limit. The file I try to upload is 61 MB. I have set the maxUploadFileSize to 256000000. My hosting company changes the server PhP settings to this: ...
2
votes
1answer
765 views

What is the best way to test if a file exists without knowing which file extension a Craft install is using for templates?

Craft allows users to use whatever template extension they prefer: .html or .twig or something custom. We can check if a file exists like so: IOHelper::fileExists($filePath) Is there any way to ...