2022 Developer Survey is open! Take survey.
7 votes
Accepted

What is the level of risk in enabling user-uploaded photos in EE?

I assume that EE's native file upload functions use the Upload class, but what exactly does the Upload class do to validate and sanitize? Does it check MIME type using some sort of actual file ...
user avatar
  • 520
5 votes
Accepted

Focuslab Multi Environment Config upload preferences issue

Add the trailing slash for the 'server_path' also. /** * Custom upload directory paths * * The array keys must match the ID from exp_upload_prefs */ $env_config['upload_preferences'] = array( ...
user avatar
5 votes

Batch Uploading & Watermarking?

The CE Image plugin has a watermark functionality (and much more), check 'watermark' on this page: http://www.causingeffect.com/software/expressionengine/ce-image/user-guide/parameters
user avatar
  • 1,356
5 votes

Batch Uploading & Watermarking?

Channel Images can do that and a lot of other neat stuff: http://www.devdemon.com/documentation/channel-images
user avatar
  • 136
5 votes
Accepted

Restrict Members to their own files

Here is one approach: Put the users in a member group that has the member preference "Can edit entries authored by others" set to "No" Use Channel Images or Channel Files to manage the file uploads. ...
user avatar
  • 7,941
4 votes

PHP fileinfo and MimeType.php

EllisLab addresses this issue on a blog post. Part of it: If you encounter problems with uploading files check the following: Login to your CP and go to Tools, then Utilities, then PHP Info. If you ...
user avatar
  • 6,108
4 votes
Accepted

Unresolved error with EE 2.10.1 and MimeType.php

I just encountered this, and found that I had to follow the instructions in this Dreamhost wiki entry to truly enable fileinfo functions. (The default "shared" fileinfo support didn't cut it.)
user avatar
  • 17.4k
4 votes
Accepted

Cannot upload EPS to file directory

A coworker had this same problem earlier this week and added 'application/octet-stream' to the mime types to solve this.
user avatar
3 votes
Accepted

Is there a way to include jQuery after a Channel Form?

I've had this same problem. I solved it by simply using {if segment_1 == "abc"} statements to not include my jQuery on any page (segment) that had Channel Forms loading it's own jQuery. You can also ...
user avatar
3 votes

Cannot Upload PDFs with Firefox (Mimetypes)

I've seen instances where PDF uploads won't work in Firefox if you've got ExpressionEngine XSS filtering file uploads. In Admin -> Security and Session Preferences, set "Apply XSS Filtering to ...
user avatar
3 votes
Accepted

File Upload urls have //chroot added to the url

The image problem is usually caused by the setup at your hosting provider (Nexcess?). I believe you can fix this by setting the correct base path for CE Image, as described here. EDIT: And this is ...
user avatar
  • 337
3 votes
Accepted

Unable to upload PDF using File Upload

With that error when uploading a PDF the first thing to take a look at is Admin ‣ Security and Privacy ‣ Security and Sessions and see whether "Apply XSS Filtering to Uploaded Files" is set to "yes." ...
user avatar
  • 7,941
2 votes

Upload field has disappeared in WYGWAM

I had this same problem and after some head scratching, found that for some reason the other member groups didn't have file upload priviledges. So, check: Content -> Files -> File Upload Preferences -...
user avatar
  • 21
2 votes

Images uploading sideways

I managed to get this working. Here's how. I made a hack for VZ Exif (by Eli Van Zoeren) that reads in orientation data. You can use this with CE Image to accomplish conditional rotation based on the ...
user avatar
2 votes

Cannot Upload PDFs with Firefox (Mimetypes)

try to use this one 'pdf' => array('application/pdf', 'application/x-download', 'application/download') and tell me and you can always solve this problem by rename the mimeTypes.rdf file ...
user avatar
2 votes
Accepted

Expresso Store and Drag and drop upload form during checkout

You will need to upload the images separately from the checkout. I suggest using a channel entry form or as you mentioned, solspace freeform. After you get your customer to upload an image, you need ...
user avatar
2 votes
Accepted

How to upload photo, edit it with Aviary and then submit through a front-end form?

Have a look at @objectivehtml's extremely powerful Photo Frame add-on. There is also a demo of it running on the front end. To get the same number of editing options, you may also need his companion ...
user avatar
2 votes
Accepted

file manager doesn't display subfolder

The default file manager does not allow for browsing of subdirectories. You would need to use something like Assets ( http://devot-ee.com/add-ons/assets ).
user avatar
  • 7,556
2 votes

Synchronise Files programmatically/automatically

Take a look at line 1187 in system/expressionengine/controllers/cp/content_files.php. The function do_sync_files() is called by the synchronize page. This would be in the EE 2.8.1 core files. You ...
user avatar
2 votes

Upload file form in CP - create module

You can use the api to add a single upload field to your module or fieldtype. http://ellislab.com/expressionengine/user-guide/development/usage/file_field.html . if you want to include multiple image ...
user avatar
2 votes

Upload image and get "URL Only" in text field

Have you seen the image tag pair - https://ellislab.com/expressionengine/user-guide/add-ons/channel/custom_fields.html#variable-pair-usage If you're using a File field you have all the parameters ...
user avatar
  • 1,577
2 votes

ExpressionEngine and Online Photo Service

The shopping Cart add-on Cartthrob can do this, and possibly the other e-commerce add-ons such as store or BrilliantRetail too (but i haven't checked). All you do on the checkout page is add a file ...
user avatar
  • 1,701
2 votes

I'm trying to upload a favicon to EE, but it says the .ico file type is not allowed

I would upload it to the root of the site and then link to it in the head of your document like this <!--favicon--> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />...
user avatar
  • 4,747
2 votes
Accepted

Undefined variable: whitelist whenever trying to interact with files

Did you run an EE upgrade recently?? They changed how they detect mime types: https://ellislab.com/expressionengine/user-guide/about/changelog.html Look at the change log for 2.10. They use a ...
user avatar
  • 5,900
2 votes
Accepted

CRUDL Interface for Custom Data and Files: The Correct Way

The best way would be to use the Model service to create Channel Entries and files: https://docs.expressionengine.com/latest/development/services/model.html This will guarantee you are saving ...
user avatar
  • 5,900
1 vote

Unable to view uploaded images from IE11

There: "... All other browsers seem to work properly", fixed :-). Does explorer have a firebug/devtools like console? Try to inspect the network response, notices in there.
user avatar
  • 2,157
1 vote

Upload image and get "URL Only" in text field

Unfortunately not - you'll have to place the link to the file in the field, then remove the extraneous markup manually. The only real solution here is to use Assets.
user avatar
  • 17.4k
1 vote

Timeout error with Freeform

Freeform 3.1.5 is an old version that isn't supported anymore. We strongly recommend upgrading to Freeform 4.x. See the compatibility chart to make sure your version of EE is compatible with Freeform ...
user avatar
  • 6,139
1 vote

Basic EE file upload hangs

Check that your file upload directory settings are correct (Content > Files > File Upload Preferences > "Edit" link) and the folders on the server have their permissions set to 777. You can even try ...
user avatar
1 vote

Freeform - make file_upload field required

You can make it required by adding an hidden input with the same name as your file input: {exp:freeform:form required="file_upload"} {freeform:field:file_upload show="1"} <input type="hidden" ...
user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible