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 Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

Gabriel

If you changing “Field Type”, related settings for actual selected type not changing (and return JS error).

What browser/OS are you using? I can’t seem to recreate this? Do you have any other extensions installed?

tpayton

I am correct in thinking that with 3.0.1 there is no longer a need to apply a hack to allow for SAEF uploading to a file field?

I haven’t spent too much time in the SAEF yet, but it’s next on my list of things to do, look for some improvements in v.3.2.0

Just installed on 1.6.1 and when clicking “create new upload destination” at CP Home › Admin › Weblog Administration › File Upload Preferences I get this:

This should be fixed in the next revision. I forgot to set a default value in a method.

Dane Thomas

I am right to assume that the upload feedback isn’t in the current 3.1.0 release - cause I don’t seem to be getting it.

It should be in there. When you click ‘Submit’ or ‘Quick Save’ the file upload fields should be replaced with a progress bar. Just make sure you’ve uploaded the latest images to /images/icons/....

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

Finally got it working, well… sort of. When I try and upload mutiple images, I get this error in Firebug (within Firefox 2.0.0.9):

uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://www.kirradive.com/system/index.php?S=07695b95125b3b2154821d099d0770c6f4a6e7e1&C=edit&M=edit_entry&weblog_id=2&entry_id=13 :: uploadFiles :: line 2451" data: no]

I don’t see an upload progress bar, despite uploading the new icon. It’s also only taking the first image and replicating it. This is the end result after update:

dc7f6d799a0eb827f30676090c7fd9f7.JPG dc7f6d799a0eb827f30676090c7fd9f7.JPG dc7f6d799a0eb827f30676090c7fd9f7_thumb.JPG dc7f6d799a0eb827f30676090c7fd9f7_thumb.JPG

So I get two copies of the first file uploaded (both original and thumb). What gives?

Thanks!

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

Hi Mark,

This extension is great but I also can’t see the progress bar when clicking save it just goes in as it normally would. Also if you can get this to work with the SAEF in the next version then I would walk across heaven and hell for you!! 😊

Thanks for such a great extension though and all the great work you do for us all.

Best wishes,

Mark

       
mArzsmAn's avatar
mArzsmAn
45 posts
17 years ago
mArzsmAn's avatar mArzsmAn

Mark, when I try to change my settings in the upload preferences, I get this error

MySQL ERROR:

Error Number: 1062

Description: Duplicate entry '5-show_thumbnails' for key 2

Query: INSERT INTO exp_mh_file VALUES('', 5, 'show_thumbnails', 'no') ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), value=values(value)

I have no problems with uploading pictures

       
hothousegraphix's avatar
hothousegraphix
851 posts
17 years ago
hothousegraphix's avatar hothousegraphix

I too was getting the same error as tpayton (working on 1.6.1)

MySQL ERROR: Error Number: 1064 Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1 Query: SELECT * FROM exp_mh_file WHERE upload_id=

I was able to get around it by disabling the extension and then adding new upload directories.

Once added, I re-enabled the extension and all works as you would expect it to. Thought it probably shouldn’t work this way, this work-around certainly should allow you to use the extension.

       
benpowell's avatar
benpowell
29 posts
17 years ago
benpowell's avatar benpowell

I’m using File 3.1.0 on EE 1.6.1. I’ve got a single upload field that I’m using for images. I’m resizing images uploaded via this custom field so that the width is 207px and the height is kept proportional. This works great but I’m getting some odd filesizes for the resized images. For example I uploaded a .jpg image which was 542px by 729px and 22Kb but the final image measuring 207px by 278px is 31.5Kb…

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

@benpowell - Hum, it must have something to do with the JPEG quality settings. I’ll take a peak and see what can be done.

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

Hi Mark,

I was just wondering if there was any news on using this with an SAEF yet?

Best wishes,

Mark

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

Mark - Coming soon, hopefully very soon.

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

Mark you deserve a medal.

Looking forward to it with baited breath! 😊

Hope everything is going well for you.

Best wishes,

Mark

       
benpowell's avatar
benpowell
29 posts
17 years ago
benpowell's avatar benpowell

Great extension, but a couple of issues using File 3.1.0 / EE 1.6.1:

  1. When I go to File Upload Preferences and select the ‘Do not resize’ option, click on the ‘Update’ button and then view the preferences it doesn’t look like this option is saved as the drop down displays Auto as the resize option. All the other options seem to be save correctly.

  2. I have an upload folder and when it’s set to images only the file uploads and its permissions are set to 777 but if I change it to all file types the uploaded file gets set to 600 so can’t be accessed via the public site.

Feature Request - Would it be possible to have an option so that where an uploaded image is smaller than the max width/height allowed in the folder and one of the resizing options is on that the image is not resized as currently images are scaled up.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot
When I go to File Upload Preferences and select the ‘Do not resize’ option, click on the ‘Update’ button and then view the preferences it doesn’t look like this option is saved as the drop down displays Auto as the resize option.

This will be fixed in the next version. It is saving properly, just not displaying the correct value within the select.

I have an upload folder and when it’s set to images only the file uploads and its permissions are set to 777 but if I change it to all file types the uploaded file gets set to 600 so can’t be accessed via the public site.

Strange, because my script doesn’t even look at the ‘images only’ option, so I’m not sure how that would affect things. I’ll keep an eye out for this behavior though.

Would it be possible to have an option so that where an uploaded image is smaller than the max width/height allowed in the folder and one of the resizing options is on that the image is not resized as currently images are scaled up.

Duly noted.

       
benpowell's avatar
benpowell
29 posts
17 years ago
benpowell's avatar benpowell

Regarding my post about uploaded files not being chmoded to 777 when the upload folder is set up to receive ‘all file types’ instead of ‘images only’, I think I found a fix (added code in bold):

// Do the Upload // ============================================= foreach($file_tmp_names as $file_key=>$file_tmp_name) { if(@move_uploaded_file($file_tmp_name, $server_path.$file_names[$file_key]) === FALSE) { $errors[] = str_replace(array(‘%{field}’, ‘%{file}’), array($file_field[‘field_label’], $file_names[$file_key]), $LANG->line(‘error_transfer’)); } else { chmod($server_path.$file_names[$file_key], 0777); } }

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

@benpowell - Thanks! I’m chmod’ing the thumbnails, but not the original. Silly me. This fix will get rolled into the next version.

       
jtnt's avatar
jtnt
137 posts
17 years ago
jtnt's avatar jtnt

I get the same error as tpayton upon making a new file upload destination. Using build EE 1.6.1 20071114 and File v 3.1. I got around it as well by disabling the extension and making the directory, then re-enabling it.

-snip- Post edited, because I figured something out. -snip-

Thanks for the continual improvement of this. The new stuff is fantastic!

       
First 20 21 22 23 24 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.