7

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 analysis, or does it simply rely on what the browser reads it as? The Upload class uses the $_FILES array and it does use $_FILES[]['type'], but we do some ...


5

The problem lies in that you can upload multiple files using FreeForms File Upload Field Type - so you can't just use name="file1" as your field name. To make this work, you have to pass the field type as a post array, so name="file[0]" for the first file (and if you have multiple files name="file[1]", name="file[2]" and so on. So, the resolution (for me ...


5

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( 1 => array( 'name' => 'Home Page Slideshow', 'server_path' => $images_path . '/home_slideshow/', 'url' =&...


5

Channel Images can do that and a lot of other neat stuff: http://www.devdemon.com/documentation/channel-images


5

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


5

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. These add-ons have per-entry file management, so they will create separate directories per Channel entry. This combination effectively makes it so that ...


4

I think it's a bug, look at this bug report: https://support.ellislab.com/bugs/detail/19732 Francois


4

It appears to be stemming from an error in the JS preventing the global EE object from being created. Digging deeper I was able to identify the culprit: { "name": "Link in this site", "key": "", "openWith": "<a href=\"http://farpoint.fcs.uga.edu/facs/template\\" > ", "closeWith": " < \/a>", "className": "btn_Linkinthissite" } Note the ...


4

You can use your original code if you prefix variables with the Grid field's short name. The purpose of the prefix is to avoid conflicts with the outer Channel Entries loop; it doesn't affect functionality. {gallery_images} {gallery_images:community_image} <img src="{path}_thumbs/{filename}.{extension}" alt="{title}"> {/...


4

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 see --disable-fileinfo on that page (I recommend using your browser’s search function) then you will need to contact your host and have them provide a version ...


4

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.)


4

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


3

There's not one way to do this with EE. It all depends on your code. You should find the section (or sections) of your site templates that have the meta tags. Then add your favicon tag there too. To make sure you have the correct path to the favicon, open the favicon link in your browser. Example: <link rel="shortcut icon" href="/favicon.ico" type="...


3

On my servers I use Clam AntiVirus. It is free, have good db and has clamscan which can be used with system commands. For integration native upload need to make ext. used hook file_after_save. For Playa - assets_upload_file Based on pass/fail indication which clamscan is return, make decision - keep it or delete it.


3

Make sure that the particular Wygwam editor configuration assigned to this custom field has a chosen upload directory. To double check this go to... Modules > Wygwam > Editor Configurations ...and in the editor configuration settings you will see a select menu labelled "Upload Directory" where you assign this.


3

Turns out this was a bug. The bugreport (https://support.ellislab.com/bugs/detail/19837) says to do this, which has resolved it: In the file system/expressionengine/fieldtypes/file/ft.file.php at line 147 replace: container.find("input[type=hidden]").val(function(i, current_value) { with container.find("input[type=hidden][name*='hidden']").val(function(i,...


3

I just found the answer. It is a bug: https://support.ellislab.com/bugs/detail/19732


3

Check that the images are actually of the type uploaded. The error is suggesting they're not valid JPEGs, so it's worth checking they've not been saved as, say, a PNG file and renamed to JPEG. Alternatively, the file could be corrupt either at your or the server end. Finally, if part of the file has been written it's possible the disk is full at the ...


3

If you have favicon.ico in your website root folder--i.e., so the favicon's URL is http://yoursite.com/favicon.ico, then you do not need to include a link to it in your HTML header. Browsers will automatically try /favicon.ico when they find no link in the header (and, some will try /favicon.ico even when do find a link in the header…). However, if you do ...


3

This is bug with ckeditor upon which WYGWAM is built. Pixel and Tonic have said fix is coming soon in new release of WYGWAM.


3

If you have command line access on the server, you can setup a Symbolic Link: http://www.wallpaperama.com/forums/linking-files-with-symbolic-links-linux-unix-shell-command-tutorial-guides-t479.html Apparently you can also set up a Symbolic Link without command line access using PHP: http://perishablepress.com/use-php-to-create-symbolic-links-without-shell-...


3

By default, the members of the guests group cannot upload to EE; this is a permissions issue, but, it's permissions within EE, not with the filesystem, which is why CHMOD'ing to 777 didn't help. Here's a link to a previous post with this problem, and a solution.


3

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 uploaded files?" to "No". I'm not a fan of disabling security measures like this, but I've found no other solution.


3

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 overwrite the jQuery file that EE/Channel Form includes with your version of jQuery -- I have found EE's version to be slightly different to what I download ...


3

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 an example of how to set it at Nexcess: $env_config['ce_image_document_root'] = '/chroot/home/account/domain/html';


3

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." If it is, try setting it to "no" instead. If that clears it up and you don't want to globally stop applying XSS filtering to uploaded files then there is a ...


2

There is a patch here: http://ellislab.com/asset/bug_patches/synchronize.zip (replace synchronize.js in themes/javascript/compressed/cp/files/ with the one in this file) Edit: apologies, just saw your comment. Will leave answer here for future Googlers...


2

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 photo's orientation. Click here to download the hack. Put the hacked plugin in ./system/expressionengine/third_party/vz_exif/pi.vz_exif.php Install and enable ...


2

You can upload an avatar images during registration with {exp:user:register} by using a file field with a name="" of avatar_filename: <input type="file" name="avatar_filename" /> However in general (not just with Solspace User but any form), uploading a file using AJAX may require a special javascript/jQuery plugin, such as AjaxFileUpload. Simply ...


2

In the field settings for your file field simply uncheck the Show Existing Files checkbox.


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