Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
105 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
262 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
184 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
121 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!
6
votes
0answers
265 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
93 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
342 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
569 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
443 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
984 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
2k 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
324 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
547 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 /...
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 ...
1
vote
0answers
290 views

Upload assets manually: replace existing files

Context: For a redesign and port to CraftCMS, I need to import the content from a blog hosted on another platform with a lot of content (over 500 posts and over 3000 images). Strategy: To import the ...
1
vote
1answer
159 views

Uploading to a date subfolder within a Matrix

I'm working on a site that will have lots of content. Our customer now asked to have their images upload into a different subfolder, by date. I can get it done in a "normal" Assets field, but in a ...
1
vote
1answer
132 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
2answers
875 views

Uploaded image not appearing

I'm having an issue where a user is uploading images but they're not showing up correctly. The photo is listed in /admin/assets and shows the correct file size, kind, dimensions, etc but I'm getting a ...
0
votes
1answer
332 views

Uploaded .gif only loops once instead of infinitely [closed]

Having a problem where uploading an infinitely looping gif only loops once. I've tested it with and without image transforms and get the same issue. I know there there was an issue previously stated ...
1
vote
1answer
2k views

File upload - maximum upload size of 0 B

I just upgraded Craft to the latest version, and this error now shows up. The file “myfile.jpg” could not be uploaded, because it exceeds the maximum upload size of 0 B Any fix ? Everything worked ...
1
vote
0answers
89 views

How may I restrict uploads to a single folder with variables within a Rich Text Field?

Craft's Asset Fields allow you to restrict uploads to a single folder—and even pass through a variable to create a dynamic path. How may I restrict uploads to a single folder with variables like this ...
1
vote
1answer
162 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
50 views

UsersController's actionUploadUserPhoto and actionCropUserPhoto with Element API

Can you use the Element API plugin to utilize UsersController's actionUploadUserPhoto and actionCropUserPhoto methods?
1
vote
2answers
431 views

Craft Commerce: Upload File Field in Order?

I'm looking at Craft Commerce as a possible solution. In the order process we want customers to be able to upload a file against their order which can then be accessed by the shop administrators. Is ...
1
vote
1answer
1k views

Upload failed for filename. The path doesn't exist

I have an issue with uploading files. I got an error message: Upload failed for filename. Path directory structure "/public_html/assets/images /" set for this resource doesn't exist. The Path ...
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 ...
1
vote
1answer
1k views

S3 Asset uploading hangs

I am having an issue with uploading assets to S3 from Craft. So far I have taken the following steps: Create permission policy and attached to group containing craft user: { "Version": "2012-10-...
2
votes
1answer
196 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.
3
votes
1answer
220 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"
0
votes
1answer
495 views

Upload any size image into carousel

I wanted to create a php which allow admin to upload their pictures in any resolution and image file type, but it has to display into a bootstrap carousel with fixed size. Does anyone has the similar ...
0
votes
0answers
159 views

PHP Warning on Asset Upload: PelInvalidDataException

I have a front-end form to upload image files, which works 100% perfectly most of the time. However, I've noticed with larger sized images, I'll get a PHP error saying: PHP warning include(...
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 ...
0
votes
1answer
456 views

500 error: uploading files (duplicate primary key)

Afternoon all - odd issue where created some new asset folders and adding new files is timing out. If I view the folder in question (on the server) I can see the file has been successfully uploaded ...
1
vote
2answers
893 views

Adding php.ini file to root crashes site

My client's site is on name.com and in order to change the upload limit, I think i need to place a php.ini file in the web root. But Craft crashes when I add it. The site is fine when I remove it. ...
3
votes
0answers
376 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 ...
1
vote
1answer
285 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' ...
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::...
0
votes
0answers
249 views

upload doesn't finish

the file upload always does not finish and it shows no error alert. Also in the logs there is no error. I only find an error in the browser debugger on actions/assets/uploadFile . Maybe the error ...
1
vote
1answer
69 views

How can I add field content to an asset in code?

I'm trying to upload an asset based on this code https://gist.github.com/sathoro/8178981 which works fine, but how can I add additional content fields during the upload? I would like to set the ...
0
votes
0answers
835 views

Assets upload and Update Asset Indexes issues

There seem to be some issues with asset uploading, and i can't figure out what the problem is. Here's a summary: After uploading an asset it doesn't show up in the Assets listing If i do a 'Update ...
1
vote
1answer
2k views

Redactor upload image and file does not work

I succeeded to add the image and file upload buttons to my rich text redactor field with the fileupload param in the json config file. { buttons: ['html','formatting','bold','italic','...
0
votes
1answer
696 views

Multiple Photos/Assets in one upload entry [closed]

I'm having a bit of a problem with using craft currently. My site has a gallery section where I would like to mass-upload image files to an entry which is in the area: admin/entries/photos However, ...
1
vote
1answer
673 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, ...
1
vote
1answer
202 views

Get file errors after upload

Hi I have a plugin which is basically a form. This form has upload file field which I added in the backend side in Assets fields so I have something like this: <fieldset> ...
1
vote
1answer
873 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
197 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?
2
votes
1answer
450 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 ...
1
vote
1answer
294 views

Catch file-size errors in Guest Entries Form

I have a front-end entry form using the Guest Entries plugin, with a file input for the user to upload a photo. I am also using the jQuery Form plugin for AJAX submission, but the behavior is the same ...