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

Yuri's avatar
Yuri
273 posts
17 years ago
Yuri's avatar Yuri

I’m getting this error:

{photos}
{photos}
    {file_url}
{/photos}

Outputs

/upload/img1.gif
/upload/img1.gif
    /upload/img1.gif

I use version 3.1.1 Someone help me 😊

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

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 .

       
Jermaine M's avatar
Jermaine M
20 posts
17 years ago
Jermaine M's avatar Jermaine M
2. If I turn on file rename, then upload 2 or 3 images, only the last image gets uploaded by 3 times!

I also experience this same issue when uploading multiple images with the file rename option turned on. It rewrites the names of all the files to the same name.

       
David Boyer's avatar
David Boyer
12 posts
17 years ago
David Boyer's avatar David Boyer
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.

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

Two feature requests for the next revision…

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

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

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

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

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

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
       
Ty Martin's avatar
Ty Martin
232 posts
17 years ago
Ty Martin's avatar Ty Martin

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?)

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo
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.

       
Ty Martin's avatar
Ty Martin
232 posts
17 years ago
Ty Martin's avatar Ty Martin

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?

       
Ty Martin's avatar
Ty Martin
232 posts
17 years ago
Ty Martin's avatar Ty Martin

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.

       
Ty Martin's avatar
Ty Martin
232 posts
17 years ago
Ty Martin's avatar Ty Martin

Oh man. I just got it (I think, at least it’s working for one of my forms). I missed a comma. Lame!

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

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?

       
Chad Crowell's avatar
Chad Crowell
242 posts
17 years ago
Chad Crowell's avatar Chad Crowell

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!

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

If I upload a large image file I get a blank page on Submit. Any reason for this? I tried debugging but I still get the blank page.

       
First 25 26 27 28 29 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.