Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
3answers
400k views

413 “Request Entity Too Large” error with uploading a file

In assets when uploading a medium size file I get this error: Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) What does it mean? And how to fix?
6
votes
0answers
258 views

Solspace Freeform Upload file dynamic location and duplicate file avoidance

Using Freeform for forms which have multiple file upload fields. Is it possible to have a unique asset directory for each submission? For example: uploads/maindirectory/submission.id/ I'm trying to ...
5
votes
1answer
1k views

Craft 2.2 with enabled enableCsrfProtection: Failed to load resource: the server responded with a status of 400 (Bad Request) [closed]

Since the update to version 2.2 I can't upload assets. I get this error message in the console: Failed to load resource: the server responded with a status of 400 (Bad Request) And the upload stops:...
4
votes
1answer
1k views

Upload file from plugin's Controller to a non-Assets folder

I have a plugin Controller that accepts a POSTed form, including an uploaded file. If I make an Assets Source I can successfully save the file into its folder like this: $file = UploadedFile::...
4
votes
1answer
504 views

How to control the format of an asset's Title

Is there any way to control the formatting of an asset's title that is created from the filename on upload? At the moment, if you uploaded a file called Craft-CMS.pdf it would create the title as ...
4
votes
1answer
750 views

Hosting Craft on Heroku, problems with Asset uploads and thumbnail generation

Has anyone had success hosting Craft on Heroku? I got it up and running, but can't get file uploads to work. Also image thumbnails don't get generated. I am using Craft PRO and Assets are hosted on ...
3
votes
2answers
3k views

Upload file size limits to 256MB

I have run into a problem of file sizes maxing out on 256MB. On PHP side I have upload_max_filesize & post_max_size set to 1GB I've created a simple PHP script to test upload size and managed to ...
3
votes
1answer
274 views

How to rename filename of asset before (or after) upload in Craft 3

I want to change the filename before the file is stored, to prevent ugly, long and weird filenames uploaded by users. I've found an example for Craft 2, but because of the changes for events I can't ...
3
votes
1answer
913 views

Error on upload: “Impossible to create the root directory…”

In Craft 3.2.10, I'm getting this error message when I try to upload an image asset: Upload failed. The error message was: “Impossible to create the root directory "/Users/me/Work/Client/repo/web/...
3
votes
2answers
306 views

Uploaded images stripped of EXIF data

I've got a clean install of Craft with just some initial configuration of entry types, categories, assets, etc. Any image I upload (either directly into assets or via an image field) has almost all ...
3
votes
1answer
210 views

Dynamic Subfolders leaving empty folders behind

I have {status}/{category}/{slug} as the path for uploading photos. When the status changes on the entry, then the photos associated with that entry move to the correct folder. However, it leaves ...
3
votes
1answer
1k views

Image upload failed- file not writable

Trying to upload images and get the following error Upload failed for "filename". The error message was "Error uploading the file: The folder "/var/www/html/imgs/logos/" is not writable"
3
votes
1answer
483 views

Upload and crop profile photo in frontend

When you are in the backend and go to a user > profile tab. You'll see a very nice photo upload. I want to build this for the frontend users as well. I have a basic form and I'm loading in the ...
3
votes
1answer
397 views

Unzip zipped file after upload

I'd like to know if it is possible to have Craft unzip a .zip file that authenticated users have uploaded through the CP. The idea is that the users will prepare several static html, javascript, css ...
3
votes
1answer
155 views

Prevent to upload any kind of file on Asset menu

I made two different types of Assets: one for images and one for PDF. They works in 2 differents folder to avoid to mix them. Using them inside entries it works good, if I try to upload something ...
3
votes
1answer
3k views

Error with uploading Asset Files: net::ERR_EMPTY_RESPONSE

In my local MAMP site I'm not able to upload any files. Gives me this error in Chrome: http://nobel.craft.dev:8888/index.php?p=admin/actions/assets/uploadFile net::ERR_EMPTY_RESPONSE This error ...
3
votes
0answers
373 views

Uploaded 8-bit PNGs losing alpha transparency (using ImageMagick) [closed]

I found searching through other questions here that: Currently the images are being cleansed on upload, which means that they are being re-saved to make sure that no malicious code is injected ...
2
votes
2answers
247 views

Laravel Forge not honoring Craft 3 maxUploadFileSize config setting

I have a Craft 3 site deployed to a Digital Ocean droplet via Laravel Forge. I have the maxUploadFileSize set to 256B (268435456 in bytes) in my config/general.php like so: <?php return [ // ...
2
votes
2answers
1k views

Asset Uploading via Assets Field Broken, please help

*Update: Installed MAMP Pro, reinstalled Craft, asset upload is working now. Not exactly a fix, but seemed like the simplest route of action due to my unfamiliarity with PHP. Thanks to those who ...
2
votes
1answer
743 views

Custom field type file upload error [Uploaded File Class]

I need to upload a file to my server via a custom field type and I'm trying it like this: public function prepValueFromPost($value) { // Get file $file = \CUploadedFile::getInstanceByName(...
2
votes
1answer
559 views

Front end assets uploading, does not appear to be a an image error

I have a front end form for entries. All other fields are working fine however my assets keep throwing errors. My assets location is set to 'Images/{slug}' in the CP. Server info tells my ...
2
votes
1answer
195 views

Upload Image Custom Field

Is there any "Upload Image" custom field in craft so that I will be able to make my images editable. Thanks for the answer.
2
votes
1answer
439 views

How to process CSV files within a Matrix field?

I'm trying to import and process CSV data within a matrix field. My situation is the following: I have a matrix field with one block and several fields inside. One of these is an asset field to ...
2
votes
1answer
254 views

Asset upload fails with progress bar at full, but images in tempuploads folder

I can’t for the life of me get images to upload. Neither on my local server or on the live server. The progress bar goes to the end, and then … nothing. From what I can see online, I’m not the only ...
2
votes
1answer
558 views

JPG upload not completing in Craft 2.6.2789

When uploading a new asset the loading bar appears complete but does not actually upload the JPG. I've investigated the Craft logs and cannot find any errors regarding this. In the Javascript console ...
2
votes
1answer
35 views

Uploading Assets - PNG changed from 72 dpi to 96

I've seen a couple strange things that Craft does when uploading images (like upsizing jpgs). The most recent, every time I upload a .png file it changes it's DPI from 72 to 96 for some unknown reason ...
2
votes
1answer
865 views

Craft 3: Upload user photo from front end

How do I allow logged in users to change their user photo on the front end in Craft 3? I am creating an "Edit Profile" page and I followed the answer to this question for Craft 2 to create a form ...
2
votes
1answer
432 views

Rotate image according to EXIF orientation not working from a plugin

I am using a front-end form to upload images and store them as assets on an amazon S3 bucket. My server has imagick installed an uses it and in my config I have "rotateImagesOnUploadByExifData" set ...
2
votes
1answer
548 views

8MB memory limit on asset uploads?

I'm trying to upload a 40MB video through the assets tab in the admin panel, but I get an error saying "The file "x.mp4" could not be uploaded, because it exceeds the maximum upload size of 8.0 MB." ...
2
votes
1answer
100 views

Non-admins not authorized to create entry via frontend

I'm currently working on a page that should allow registered users to upload an image and save it as an entry in a section called "bildupload", together with some additional fields. Creating/saving ...
2
votes
1answer
82 views

PNG-8 upload to S3 hangs

We're having trouble uploading PNG-8s. PNG-24s and JPGs work fine, but after selecting a PNG-8 to upload, the progress bar appears and fills to max in a couple of seconds, but then hangs indefinitely. ...
2
votes
1answer
134 views

User make assets subfolder in the frontend

I have a standard user profile form. But now I would like that the user can upload images in new subfolder and make own subfolder. Is there any solution or a plugin for this?
2
votes
1answer
460 views

Uploaded file was empty

We've got all the max settings set up OK as per https://craftcms.com/support/upload-troubleshooting, but we are still getting errors. The log file just shows this, nothing more: 2014/10/24 11:26:35 ...
2
votes
1answer
85 views

Is there a way to prevent uploading assets into a parent level folder?

Say that I have a folder structure like this: /images /products /employee-photos /user-photos /advertising Is there a way that I could define the single asset source of /images while only ...
2
votes
0answers
82 views

How to Upload Multiple Assets Using Frontend Form

I'm trying to create a more interactive experience to upload moultiple images on a frontend entry form. Things I have done: I have implemented the code here: https://docs.craftcms.com/v3/dev/...
2
votes
0answers
380 views

Temp folder and file upload permissions issue

Using Sprout Forms Plugin, and following the front end file uploads example, I'm trying to use the famous jQuery File Upload plugin to deal with batch of large files and get upload progression. This ...
1
vote
1answer
2k views

Does Craft enforce a maximum filesize for large files?

A client we're working with has a requirement to upload one large file (about 320MB) every 2–3 months. Craft has been configured with a local asset source to handle this. I'm trying to decide the ...
1
vote
1answer
160 views

Error uploading .bmp file format - gets rejected

I'm doing some testing on file uploads and discovered that the .bmp file format gets rejected even though defined in my config file as an allowed file extension. I have added the following to my ...
1
vote
1answer
317 views

Images containing EXIF orientation tag are not rotated on upload

The Craft CMS instance where I noticed this is running version 2.6, but I updated it last month from version 2.2. While we did not notice any problem, according to the client, they were able to ...
1
vote
1answer
130 views

Adding images directly to public folder

I have over 9000 photos that I need to add to my site however using the upload feature in assets is taking an extremely long time. I have tried to just simply add the images to the correct folder in ...
1
vote
1answer
871 views

How do I upload photos into my assets list/library?

I get the following error message when I try to upload the photo: "Upload failed. The error message was: Error uploading the file: The file system path "/home/tramweb/public_html/craft/assets/content/...
1
vote
1answer
189 views

Uploaded images are saving to the server's temp folder and throwing 500 errors

I've got a wordpress site that is live and am building a craft site to replace it on a subdomain and am having a strange issue that I've never had with any other craft sites I've built. Sometimes when ...
1
vote
1answer
184 views

Default Upload Location needs matrix field and entry info… How?

I have a towns entry with a matrix field: townAlbums. This matrix field has just one block type: photoAlbum. This one block type has two basic text fields (the important one being albumName and one ...
1
vote
2answers
149 views

Dynamic asset subfolder path for Craft Commerce

I have a asset field where I would like to save the images in dynamic folders. The upload folder should be parsed for the Dropdown field values in a Matrix field. For a normal Dropdown field it works ...
1
vote
1answer
970 views

How can I insert images into a Redactor rich text field in a front-end form?

I want to allow registered users to insert (i.e. upload) images into a Redactor rich text field in a front-end form. I dowloaded the Image Manager plugin from Imperavi (https://imperavi.com/redactor/...
1
vote
2answers
334 views

Issue with uploading files from frontend

I'm currently trying to implement a simple file-upload form with CraftCMS. However, even though there are no errors on submitting the form, no file actually seems to get uploaded. This is the form: ...
1
vote
1answer
437 views

How does Craft handle uploading assets to AWS?

When users upload assets to a Craft CMS site setup to use AWS, do the assets go directly to AWS or are they uploaded to the Craft server first? The reason I ask is I'm building an area where users ...
1
vote
1answer
277 views

How can I get a restricted Asset Allowed File Type upload to accept RTF files

I have an Asset field for front end users to upload asset files. I prefer to use the 'Restrict allowed file types?' option. However I do not see a choice for Rich Text Format (RTF). I have 'Word' ...
1
vote
1answer
190 views

File upload error. Cannot upload .key (keynote) files

I am trying allow users to upload keynote and powerpoint files. Powerpoint works fine. Keynote fails. I do not have any asset type restrictions in place. Why am I unable to upload asset type .key?
1
vote
1answer
662 views

Uploaded photos not showing on entry

Please refer to this thread for information leading up to this problem. I am having problems with mass file uploads, the files will upload in my CP for craft, and be present on the assets list, ...