Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Event or hook to access when needing to show session messages via AJAX within Asset Events in the control panel

I am using EVENT_BEFORE_HANDLE_FILE on the asset class to moderate images before they are uploaded. I am setting session errors which show fine on the frontend templates on page refresh, however in ...
1
vote
1answer
17 views

Set asset uploader from frontend entry form

Now that Craft keeps track of which user uploaded an asset, I'm wondering if it's possible to set this information when an asset is uploaded via a frontend entry form. I have a form that includes an ...
0
votes
0answers
13 views

Form field as 'Upload Location Subfolder'

Question concerning the Freeform plugin: Is it possible to set the contents of a text field as my 'Upload Location Subfolder' of a file upload field? I tried stuff like {{ form.customerName }} and {{ ...
1
vote
1answer
17 views

CP assets uploads are reverse ordered after upload

Problem CP assets uploads are reverse ordered after upload. Description I have a folder with 5 images: 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg I want to upload these images in the Craft CP. I have an Asset ...
2
votes
1answer
30 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
0answers
62 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/...
0
votes
0answers
31 views

Using Solspace Freeform to create an entry including a file upload

I have recently been having some issues using the Solspace plugin FreeForm. I have created a front end entry form which, when submitted, creates an entry in a specified section in the CP. I have used ...
0
votes
0answers
32 views

Specify an asset volume for a file input on a front-end entry form

Is this possible? I want to specify the volume and/or folderId via hidden input, not just use the default. Nothing documented here: https://docs.craftcms.com/v3/assets-fields.html#uploading-files-...
0
votes
0answers
15 views

S3 Buckets, IAM, Cloudfront

I followed @nystudio107 post here about setting up CraftCMS with Amazon S3 and Cloudfront and it works great except I can only upload if I have all public access enabled on the S3 bucket? The article ...
0
votes
0answers
38 views

Craft CMS security scans: upload of over-the-limit file hangs the system; should it throw exception/error?

We are putting our new Craft CMS 3.2 install (dev environment) through some security scan paces, including uploads of 500Mb files. We'd expect to throw an exception message/error page on an over-the-...
1
vote
1answer
53 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 ...
3
votes
1answer
854 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
231 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 [ // ...
3
votes
2answers
305 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 ...
1
vote
2answers
166 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 ...
1
vote
1answer
65 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
31 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 ...
1
vote
2answers
796 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
0answers
255 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 ...
1
vote
1answer
1k 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. ...
2
votes
0answers
373 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 ...
0
votes
0answers
221 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
266 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 ...
2
votes
1answer
424 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 ...
1
vote
1answer
55 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?
3
votes
1answer
482 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 ...
2
votes
1answer
98 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
132 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?
1
vote
1answer
179 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
40 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
262 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 ...
0
votes
1answer
132 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() }} ...
19
votes
3answers
397k 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?
1
vote
2answers
145 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
181 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 ...
2
votes
1answer
847 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
202 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
953 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/...
4
votes
1answer
498 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 ...
1
vote
1answer
113 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
455 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 ...
0
votes
0answers
310 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
395 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
528 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." ...
1
vote
0answers
107 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 ...
2
votes
1answer
81 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. ...
1
vote
1answer
37 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
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 ...
0
votes
1answer
101 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
253 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 ...