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

Questions tagged [upload]

The tag has no usage guidance.

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

Scan of front end user uploads

I wonder if we have a form allowing file uploads for front end users, does Craft or its plugins have certain feature to scan for virus / malicious content, before saving it? If not, what would be the ...
2
votes
1answer
184 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/...
2
votes
2answers
35 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 [ // ...
1
vote
2answers
41 views

Updating Asset Indexes Fails with TemplatesController Not Found Error in Craft Logs

Client wants to be able to upload a 90MB .mp4 file to a local asset folder, that understandably throws a 'General error: 2006 MySQL server has gone away'. I uploaded the file directly to the server ...
0
votes
0answers
31 views

Craft 3 - User Upload File

I have a front end form and it's goal is to upload a file that can be seen in the users area in craft 3 backend. How can i do this in craft 3 with twig. I know how to save users input fields like in ...
1
vote
1answer
49 views

How to restrict uploads to currently edited site

I've tried /{{currentSite.handle}}/ but this uses current site handle, not the site I'm currently editing. Is there a way to dynamically set folder to currently edited site?
1
vote
1answer
22 views

Uploaded Assets always get 600 File Permission and are therefore not displayed (403 Error)

After a fresh manual Craft CMS install everything runs fine, except uploading Assets. Well, the uploading part works fine but uploaded assets always just get file permissions of 600 (adfrw) Group and ...
0
votes
0answers
22 views

Rename files uploaded to certain sources in Craft 3

I have an event written for Craft 2 which renames files, which are uploaded to certain sources, to have a 35 character random string, plus its original extension. I am looking to update this for ...
1
vote
0answers
82 views

Upload Error: 403 Forbidden response with DigitalOcean

This is the error I get when uploading files through the front end and Craft admin into a docs folder on my DigitalOcean s3 instance (bucket name is changed to test). Error executing "ListObjects" on ...
0
votes
0answers
53 views

Craft 3 cannot upload file to entry in Control Panel

Cannot upload file to entry in CP from a form in the frontend of the site. The flash message in the CP is: Entry could not be saved. {% set section = craft.sections.getSectionByHandle('areaprivada') ...
0
votes
0answers
146 views

Large file upload, 500 server error

We've a Craft 3 site hosted with Digital Ocean (Serverpilot set-up) with the DNS routed through Cloudflare. The client has experienced issues uploading large ZIP files to (c140MB), returning a 413 ...
3
votes
1answer
162 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 ...
1
vote
1answer
41 views

Is there any way to replace the asset programatically?

In the CP, when we upload an image with a same name, craft will ask if we wanna keep both or replace. So in plugin, is there any way to do the replace?
1
vote
2answers
524 views

Adjusting Max File Size - Stuck at 16M After Adjusting general.php

I'm adjusting the maxUploadFileSize in Craft, to 50MB. In following the post below, I made several adjustments to both: php.ini and craft/config/general.php. https://stackoverflow.com/questions/...
1
vote
1answer
123 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
33 views

Prevent foreign characters in filenames?

It seems that some of our users are uploading filenames with foreign characters... Is there any way to prevent this? I'd like to keep the filenames to all English letters (plus numbers, dash & ...
0
votes
1answer
101 views

Serialization of 'Closure' is not allowed when upload image [duplicate]

I built up a form at the frontend to allow users to upload their avatars,my code looks like below <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrfInput() }} ...
0
votes
1answer
190 views

Serialization of 'Closure' is not allowed

I created a form on the frontend that allows users to upload their profile photos: <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrfInput() }} <input ...
1
vote
1answer
124 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
124 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 ...
2
votes
1answer
652 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 ...
1
vote
1answer
172 views

Overriding native CP template (without hacking the core)

Is it possible to create a plugin that overrides a control panel template, and still be able to update Craft normally? What I'd like to achieve: I have a custom field with information on every asset ...
1
vote
1answer
675 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/...
2
votes
1answer
332 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 ...
0
votes
0answers
289 views

Uploading Assets - Problems

I've got a number of assets directories set up. One of them is having an issue where if you upload an image it doesn't appear in the control panel despite having been uploaded to the server. I checked ...
1
vote
2answers
352 views

Clearing temporary assets from craft/storage/runtime

After some unsuccessful uploads I ended up with a lot of loose files in craft/storage/runtime/assets/tempuploads They show up in the asset list when selecting assets for new entry. How do I remove ...
2
votes
1answer
381 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
298 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
0answers
94 views

Front end asset uploads not correctly rotated

Running into an issue whereby front end asset uploads are not the correct orientation. I've spotted this mostly with user profile pics. What's the best way to start debugging this? My server has ...
1
vote
1answer
33 views

Upload assets to location based on category if entry isn't saved yet?

I'm building a gallery system and on the entry page I have fields for gallery category (category field) as well as gallery photos (assets field). When creating this entry, I would like to upload the ...
3
votes
2answers
2k 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 ...
1
vote
1answer
99 views

Copy uploaded image in event assets.onSaveAsset

Is there a way to copy an uploaded image in the assets.onSaveAsset event? I want to make a copy of the original uploaded image (for internal purposes) and after that I want to add a copyright text on ...
2
votes
1answer
233 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 ...
1
vote
0answers
158 views

Frontend upload asset to Matrix

I created a matrix with 1 type, 3 fields for user profile. I use front-end to upload file to documentUpload field. But I got PHP warning: array_merge(): Argument #1 is not an array message. I Google ...
0
votes
1answer
89 views

Uploading PDFs with Imagick extension enabled seems to rasterize and compress the PDFs

Uploading PDFs to Craft3 with Imagick extension enabled seems to rasterize and compress the PDFs. Also, if I manually swap out the files after upload, it works fine until I have to edit something in ...
2
votes
1answer
64 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
76 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. ...
6
votes
0answers
209 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 ...
1
vote
1answer
79 views

Use REQUEST variable as dynamic upload location

How can I use a request variable used in an upload form like this? <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> <input type="hidden" name="action" value="entries/...
1
vote
2answers
259 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: ...
2
votes
1answer
114 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?
0
votes
1answer
109 views

Uploading local asset hangs and produces jQuery console error

So I have created an Assets field and am using it in one of my Entries. However, when I try to upload an image, it just keeps loading. I am getting the following console error: Any ideas why? Thanks!
2
votes
1answer
465 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
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 ...
1
vote
1answer
394 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
845 views

Issue uploading files

I have completed a website for a school who can't upload files when in school. When they upload a file the status bar loads the full way across the screen but at the top right it just keeps spinning. ...
1
vote
1answer
751 views

Upload images bigger than 1MB not working

I am trying to upload jpg assets to Craft. As long as the files are smaller than approx. 1MB it's working, even in bulk upload. As soon as there's a file bigger than 1MB Craft gets stuck like this: ...
1
vote
1answer
1k views

Why does asset uploading fail with the error “Uploaded file was empty”?

Recently I've noticed that file uploads through the Craft admin panel have started to fail with the response "Error uploading the file: Uploaded file was empty". This error occurs when trying to ...
1
vote
1answer
245 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 ...
0
votes
1answer
509 views

Craft 2.6 Asset Upload 500 Error (EC2 and Amazon S3) [closed]

Our site is hosted on AWS with assets uploading to an S3. Everything has worked great until the last update. Locally, I can upload assets without issue, but on the stage we're receiving an error /...