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

Are you 100% sure your Paths are correct in the file upload preferences? You can check them at... CP Home > File Manager > File Upload Preferences > Edit File Upload Preferences Also make sure to check who is the "owner" of the folder, it should be the same user that "runs" the php/apache.


4

The manipulations happen just after a file be uploaded and it can be updated by the synchronize button on the file upload preferences. You can modify the preferences, but sadly you can't remove old manipulations from the server. If you remove a manipulation, its folder will remain on server and you need to delete it by FTP.


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

I was able to fix a similar problem on a different site. First, make sure the thumbnail directory has write permissions. The command I used was something like "chmod -R 777 expressionengine/cache" Second, take a look at the Image Resizing Preferences in the admin: Go to Admin-> System Administration-> Image Resizing Preferences Set Image Resizing ...


3

I remember running into this and the problem for me was running Synchronize ( Content > Files > File Upload Preferences ) for the upload destination. You also have to have previously uploaded the images yourself via ftp, as DataGrab doesn't do that. Here's a good rundown from the developer on images from a forum thread: I am currently writing some better ...


3

Try using the protocol neutral implementation, so /* File Upload Preferences -------------------------------------------------------------------*/ $config['upload_preferences'] = array( 1 => array( 'name' => "Uploads", 'server_path' => "${_SERVER['DOCUMENT_ROOT']}/uploads/", 'url' => "//${_SERVER['HTTP_HOST']}/...


3

You can also - for a textarea field - set "Show file chooser" to YES. Then, when writing in that field, select some words, click on File Chooser (just below the field), select an already uploaded file (or upload a new), like a pdf. The selected text will be linked to the file.


3

Try turning off the "Apply XSS Filtering to uploaded files?" setting under Admin > Security and Privacy > Security and Sessions. I've seen that filtering reject uploads with unhelpful error messages before, especially if you're uploading a PDF or non-image.


3

Native EE file uploads do not use sub folders within the upload directory nor can the native file manger and uploader see any subfolders. Channel Images does create Channel ID sub folders so that is creating your Channel ID folders when you upload something to that Channel Images field (based on your comment above). It's a big fat pain, and something that I'...


3

Thanks to the great people at PixelandTonic I have this resolved. I was having session issues with another plugin earlier and the solution to this was to change the session preferences in the control panel from "Sessions IDs only" to "Cookies only". As usual, fixing one thing will break three. The response from P&T: In your security and session ...


3

Your post_max_size needs to be at least 30MB to handle that file. It's set to 12M currently, which is not nearly enough. I generally set my post_max_size to be the same as upload_max_filesize just to keep things simple.


3

You can use MX GetID3 plugin for this purpose. This addon seems updated before 1 year but it would work.


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

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


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

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

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

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

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


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