8

The solution was to recurse 777 to the /system/expressionengine/cache/ directory as there are thumb directories that Assets creates to hold thumbnails, etc. Thank you Lisa Wess (from Pixel & Tonic) for the solution!


7

Unfortunately the EE file upload library has no extension hooks you can use to add extra routines to the process of uploading files from outside the File Manager. However, you could use SafeCracker's safecracker_submit_entry_start hook (docs) to inspect your upload (which will likely be in the $_FILES global variable), run getimagesize() on it (docs), and ...


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


6

Have you thought about making upload folder locations above root? Here is an article about doing just that for Freeform file uploads: Storing file uploads above webroot in EE2


5

I believe this is due to a new change in the safecracker/libraries/safecracker_lib.php file for 2.5.3. It seems to be causing a lot of issues (like preventing the use of Safecracker in a Matrix field). Here's a forum link: http://ellislab.com/forums/viewthread/224822/P18/#1040436 Go to line 230 in safecracker_lib.php and you'll see the following: ...


5

So I'm inferring from the forum post you linked that you're bootstrapping your config with something like NSM bootstrap or similar in order to reduce the pain of moving EE between multiple environments (local/staging/production etc.). That's a great idea, and how I roll with EE myself (though take a look at FocusLabs Master Config for another, more in depth ...


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 haven't seen this before, but we've never had anyone create an upload directory of /. before. My thoughts are you can do a FIND and REPLACE on template to correct, FIND <{filedir_15} and REPLACE with </ that should take care of all the closing tags, but I'm not certain if there maybe other '/' that might get skipped. I included the < so that you ...


4

I don't think the Store module works with file upload fields as product modifiers. But, here's a possible way to achieve the functionality I think you're looking for: Create a "designs" channel with a file upload field and any necessary meta fields. Use SafeCracker to let the user submit a "design" with uploaded file, and upon submission, redirect the user ...


4

Did you check your channel's Posting Preferences? (Admin > Channels > Channel Prefs) Could "Automatically turn URLs and email addresses into links?" be turned on? This has caught me a few times in the past... While ugly, you could otherwise wrap the output with URL Decode tags. This fall under the heading of "quick and damned-dirty" tho.


4

What sort of files do you need to lock down and how much security is required? Below is a few methods i have used in the past. Run it through PHP I used a solution a while back when i used htaccess-rules to run every request for a particular dir through a special template and used Php and template-tags to verify that the user was logged in and had the ...


4

If you're using the File Manager to upload then Store should properly create the download URL the file. Make sure the file is visible in the EE File Manager. Per the Store docs: The real URL to the file the user needs to download. You will usually retrieve this from a custom field in your products channel. The download tag will securely provide ...


4

Instead of sharing the url to the file itself, share the url to an entry which provides a download link to the file "attached" to it. The site admins would upload/attach the file to an entry. If the file needed updating they would edit the existing entry and upload a new file. The name of the file wouldn't matter as that would not be shared. The url to the ...


4

Just goto the Content menu > Files > File Upload Preferences This will list the upload destinations. Then to the far right of the list, you will see a delete column, just click the Trash icon for the destination you want to delete. This will delete the destination in EE but not the folder containing the files.


4

Just wanted to mention that parse file paths by Rob Sanchez will parse {filedir_X} variables. Usage below: {exp:parse_file_paths} {filedir_X} {/exp:parse_file_paths} To be used with query module, activerecord plugin, and any other add-on that outputs raw channel data. Since your problem was that a plugin was outputting raw results from the DB, it ...


4

Use the file field tag pair: {image}{file_name}{/image} No add-on required!


4

There are multiple PHP settings you should change to allow for larger file uploads: upload_max_filesize max_input_time memory_limit max_execution_time post_max_size This page gives details.


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

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


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

You want Simple S3 Uploader - this will upload directly to S3. I'm using it on a site at this very moment and I'm uploading 6-12Mb Images and it's absolutely fine.


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