We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

File

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Mark,

Just wondering how easy it is to implement this version with an SAEF? Any help would be greatly appreciated.

Best wishes,

Mark

P.S. Thanks for all the wonderful work you do creating these great ideas.! 😊

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

yeah, that’s right, settings page missing.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

@Dane Thomas - This will be fixed in the 3.0.1 update coming a just a few days/hours.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

Mark Bowen - Probably about the same as the last version, for now. The 3.1 release will address the SAEF, and with this new version, that should be much easier within the code I’ve laid out.

Gabriel, et al. - I’ve removed the settings page because I thought it just confused the features. There was always the ability to set parameters within the individual upload location, and the EXT settings overrode those. While this was handy for some people, I think it confused more people than it helped. It also made the code for the extension quite messy. So, I’ve ditched the global EXT settings all together. The functionality is still there, you just need to set it in each upload location individually now.

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

I’m running into issues again with this update. I’ve created a custom field, assigned it with the File property and setup the upload properties. Only problem? Doesn’t seem to upload, giving me the error:

Gallery – There was a problem uploading ‘855397144_b02c76cf76.jpg’.

I’ve tried with single and multiple images, and confirmed that a normal upload works correctly in the same location. I don’t think SAEF is enabled on my host, but I’m not exactly sure.

Any ideas?

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

mark I’m a bit confused with the syntax of this.

Should we still be using the {images} {/images} tags?

I’ve got it working fine to display a single image (just using my {custom_field} tag but I’m having trouble getting it to display multiple images.

Thanks again for the great extensions & support!

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

rick.prince - What version of PHP are you running? Do you mean safe mode is not enabled?

Dane Thomas - Check out the syntax here: http://docs.markhuot.com/ee/extensions/file/#tags. You’ll be using the {[custom_field]}{/[custom_field]} pair, with the variables listed on the docs page in between.

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Erm… yes, sorry. That shows you how much I know 😊 PHP Version 5.2.1

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

I’ve also recreated the custom field to make sure that wasn’t an issue as well. Here is my setup:

  • PHP Version 5.2.1
  • Linux
  • Apache 2.0
  • Mysql 5.0.41
       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005
I’ve removed the settings page because I thought it just confused the features. There was always the ability to set parameters within the individual upload location, and the EXT settings overrode those. While this was handy for some people, I think it confused more people than it helped. It also made the code for the extension quite messy. So, I’ve ditched the global EXT settings all together. The functionality is still there, you just need to set it in each upload location individually now.

is it going to be added back? Using it for mp3 files, I tried adding rel=”enclosure” to post file formatting? didn’t work. Also don’t see any multiple upload options… Use a previous version or will this be added.? Is there a way to add the rel tags? Thanks! great extension and very handy .

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

Not sure about the rel=”enclosure” option but if you use:

allow_multiple=yes

in the Image Properties section it enables the multiple uploads. I had a bit of trouble working this out but just follow the optional parameters from the docs and put whatever you need in the image properties section (stringing them together).

Have you tried putting rel=”enclosure” in the file post formating options? There are seperate post/pre formatting options for both file and images.

       
APGWest's avatar
APGWest
295 posts
17 years ago
APGWest's avatar APGWest

I’m still running 2.1.0 and would like to know if this version will support different options for different uploads? I ask because I want to keep the file size on the uploaded JPGs to a decent size but want to allow a lot larger file sizes for mp3’s that will be uploaded. I would assume I’d just set two custom fields but where do I enter the settings (e.g. file size limit) for them?

Thanks, Mark, this extension has become just as valuable to us as EE!!

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

You can set up different upload directories with different settings. So in your case you can have an MP3 upload folder as well as an image upload folder - each specifying different settings.

I guess the confusion with this new version integrates itself into the upload settings in the general EE admin preferences.

Once you have the two paths setup you just add ‘file’ as the custom field and then select the mp3 upload path for the mp3 files and the image path for images.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

rick.prince - Thanks Rick. I’ll look into this and see what’s up. There’s probably some optimization I can do in the back end to ensure support on a shared server (which I assume you’re running on?).

Bruce2005 - The global extension settings will probably not be added back. However I will be looking to update the File Upload preferences to make them a lot easier to use (since they serve the same purpose). Dane nails it, to get multiple downloads just drop allow_multiple=yes into your Image Properties.

Finally, to add a rel=”…” just alter your template tags to be something like this:

{[custom_field]}
{file_url}
{/[custom_field]}

This allows you to have per-field formatting, as well as conditional based tags, so you could, for example check the file name (in php) and output the proper rel depending on the type of file.

svh1 - You can set up separate Upload Locations for each field, meaning you could have different settings for each field. As for setting the file size limit, within each Upload Location you can set the Maximum File Size (in bytes) which will limit what’s uploaded to each field.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

rick.prince - Can you check your Admin » Utilities » PHP Info and let me know the values of the following: open_basedir, safe_mode, safe_mode_exec_dir, safe_mode_gid and safe_mode_include_dir.

       
First 17 18 19 20 21 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.