On a windows server I get:
Warning: move_uploaded_file(W:/wwwroot/site/www/blog/system//W:/wwwroot/site/
www/blog/images//uploads/readme.txt)
[function.move-uploaded-file]: failed to open stream:
Invalid argument in W:\wwwroot\site\www\blog\system\
extensions\ext.file.php on line 554
Warning: move_uploaded_file() [function.move-uploaded-file]:
Unable to move 'C:\WINDOWS\Temp\php601C.tmp' to 'W:/wwwroot/site/www/blog/system//W:/wwwroot/site/www
/blog/images//uploads/readme.txt' in W:\wwwroot\site\www\
blog\system\extensions\ext.file.php on line 554
554 is:
if(!move_uploaded_file($_FILES['field_id_'.$f['field_id']
.'_img']["tmp_name"][$key], $url_target_path))
Any ideas how to fix?
The regular upload function in EE works, but neither file version does..
Thanks .
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 'ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), val
Query: INSERT INTO exp_mh_file VALUES('', 1, 'allow_multiple', 'yes') ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), value=values(value)
I can’t seem to shake this error even by turning off the extension and creating the directory and then re-enabling as suggested. Once I re-enable I’m unable to make any changes to the File Upload preferences such as changing to a multiple uploads. I even tried the code fix proposed by DMT Media -http://ellislab.com/forums/viewthread/38997/P360/#335382. No Joy, same error.
Is there something else I’m missing or any other causes for this error?
UPDATE: Note that this error is different that the error encountered when trying to create a new file upload destination. This error occurs when trying to modify the file upload preferences. I didn’t explain that very well, my bad.
Two feature requests for the next revision…
The ability to only list the main image in the file table. So what I mean is: Right now when you upload an image it shows the full-sized image and the thumbnailed image in the file table. That is kinda confusing for users and can lead to issues if they decide to delete one of the images and not the other. For the users the thumbnail/full-sized image should be thought of as a set.
The ability to specify the size of both the thumbnail and the full-sized image. That was a feature that was present in the 2.x version but not in the 3.x versions.
I can’t get this to work on one of my sites (versions 3.1.0 or 3.1.1). I have it working perfectly on one site, but for some reason, installing it and enabling it on a newer site isn’t working. I’ve tried disabling and reenabling it, deleting and reuploading, everything.
It adds the entry type of “File,” but doesn’t make any modifications at all to the file upload screen. I can’t make settings for it there or anything.
Any ideas?
Thanks, Matt
I am getting another error with File.
I upload a pic and it renames to the random name. But the HTML returns the original filename so no picture on screen.
Original Filename -
overview.jpg
Renamed File
f2b6d66c3d3687bcf28c65bba91f5e05.jpg
Returned HTML
http://site.com/assets/images/content/park-headers/overview.jpg
Sorry hambo, I can’t help you with that.
Mark: I’m still confused, having skimmed through the last 8 pages of the forum here, does this extension work with the SAEF or not?
If so this would be the killer-est add-on/extension/nonEllislab piece of code out there. I’ll be looking for your donation box for sure.
Oh yeah, your extension is breaking the javascript on the add/edit custom fields page for the dropdown to select the type of custom field. It would appear your extension removes all the semi-colons at the end of the document.getElementById lines following the stuff your code inserts.(make sense?)
Sorry hambo, I can’t help you with that. Mark: I’m still confused, having skimmed through the last 8 pages of the forum here, does this extension work with the SAEF or not? If so this would be the killer-est add-on/extension/nonEllislab piece of code out there. I’ll be looking for your donation box for sure. Oh yeah, your extension is breaking the javascript on the add/edit custom fields page for the dropdown to select the type of custom field. It would appear your extension removes all the semi-colons at the end of the document.getElementById lines following the stuff your code inserts.(make sense?)
It’s ok Wonder Monkey, it seems to have resolved itself. A caching issue I think.
Okay, I’ve tested this with the SAEF by adding the same field as found in the CP:
<input class="labelfirst" type="file" id="logo" class="file" name="field_id_4_img[]"/>
It tells me
MySQL ERROR:
Error Number: 1054
Description: Unknown column 'field_id_4_img' in 'field list'
Query: INSERT INTO `exp_weblog_data` (`entry_id`, `weblog_id`, `field_id_4_img`, `field_id_5`, `field_id_6`, `field_id_4_img_0`, `site_id`) VALUES ('6', '2', 'Array', 'on', '776655', 'surfer_1280x1024.jpg', '1')
I also tried it using field_id_4 as the name of the input field but it doesn’t upload the file, just saves the filename.
Help please? Has anyone figured this out?
I found the SAEF instructions by Señor Dave but still - no dice!
I see why I have to modify the mod.weblog_standalone.php file, but when I do, none of my templates with SAEFs will render. Blank, zip, nada. As such I’m still getting the above MYSQL error.
My backup solution is to go with Solspace’s File Upload module, but this File extension seems to do exactly what I needed. In fact, as others have mentioned, this should damn well be a part of EE. It makes perfect sense for what people are doing with EE these days.
Any reason why I am just getting a blank page when trying to add an entry with a file attachment?
UPDATE: I removed the anchor width/heights and it now works. I think Mark needs some late nights!!
The url is - /admin/index.php?S=0&C=publish&M=new_entry but with a big blank page…
File worked great in version 2 but this one has more control in the Folder Upload prefs. Also what happened to the thumbnail creation preferences?
Hi Mark - I have 4 upload file fields on a form using 1.6.2 and 3.1.1, Here is the error I am getting when I fill out the form, choose 2 of the 4 image file uploads and submit the form, this error is on the resulting page:
Notice: Undefined index: field_id_22 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1042
Notice: Undefined index: field_id_22 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1046
Notice: Undefined index: field_id_21 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1042
Notice: Undefined index: field_id_21 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1046
Notice: Undefined index: field_id_20 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1042
Notice: Undefined index: field_id_20 in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 1046
Fatal error: Call to a member function show_user_error() on a non-object in /wxxxvar/system/extensions/ext.mh_file_ext.php on line 857
The result was that the images were uploaded to the correct folder and resized correctly, and they are both correctly referenced in the resulting weblog entry.
Please help!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.