Upload error

JerMe

Joined: 2005-09-04
Posts: 5
Posted: Sun, 2005-09-04 17:37

I'm trying to upload a 2.2MB .jpg (straight from my camera) to my gallery. (Running Gallery2-rc2)

Using both the gallery remote and the upload applet, i get the following error:

Upload error: Upload failed: ''.

This error occurs after the image is transfered.

However, I have succesfully uploaded other images to my new install of G2.

Any ideas?

----

Gallery URL (optional):
Gallery version: gallery2-rc2
Remote version: 1.4.1
Webserver (with version): Apache/1.3.31 (Unix)
Datatabase (with version): MySQL 4.0.20-standard
PHP version (eg 4.2.1): 4.3.6
phpinfo URL (optional):
Graphics Toolkit(s): netpbm
Operating system: RedHat Enterprise Server
Web browser/version: IE 6
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-04 17:48

please use a different upload method. gallery remote / upload applet don't show as much debug information as add item from browser.
also, on the add item from web browser, you see the upload file size limits, which could be your problem.

FAQ Gallery:c.6

 
JerMe

Joined: 2005-09-04
Posts: 5
Posted: Sun, 2005-09-04 18:05

Yea, I saw that FAQ item and read over the e-mail linked there. The e-mail talks about uploading a 20MB zip file, which is not what I'm trying to do. I just want to upload a 2.2MB .jpg. I don't need, or want to upload 128MB files.

I've also tried the browser upload (despite knowing for a fact that my jpg's size exceedes the 2MB limit stated there), and it failed, after taking a very long time, without giving me any sort of error message. Instead, it takes me back to the "add items" page. The page includes everything except the form elements for selecting images (path and browse) and the summary/keywords/description fields. So, i see the note about the file sizes, the option to use the file names as captions, and the option to create thumbnails now.. and even an "add items" button... but no way to select any items to add, and no error message.

I'm uploading the images via FTP now, and I'll try that method. But the remote and upload applet *should* work too......

valiant wrote:
please use a different upload method. gallery remote / upload applet don't show as much debug information as add item from browser.
also, on the add item from web browser, you see the upload file size limits, which could be your problem.

FAQ Gallery:c.6

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-04 18:10
Quote:
I've also tried the browser upload (despite knowing for a fact that my jpg's size exceedes the 2MB limit stated there)

the limit stated there applies to all add item methods that include transfering / uploading data to the webserver.
so GR and upload applet are also affected.
that's why i added the faq entry link.

only add item from local server is not affected by this limit, because unlike the other methods, you just move the files around on the server and no upload is involved.

no, this limit is not set by G2, it's set by your php / webserver environment, see the faq entry. and that's also why gallery remote / the applet are also affected.

 
JerMe

Joined: 2005-09-04
Posts: 5
Posted: Sun, 2005-09-04 18:17

Ok, so if I do follow the direction in the FAQ and the linked e-mail... should that fix my problem?

The e-mail was talking about uploading zip files and really *huge* files (compared to my 2.2MB file), so it didn't sound like it was describing my problem...which is why I didn't try what it said to do.

valiant wrote:
Quote:
I've also tried the browser upload (despite knowing for a fact that my jpg's size exceedes the 2MB limit stated there)

the limit stated there applies to all add item methods that include transfering / uploading data to the webserver.
so GR and upload applet are also affected.
that's why i added the faq entry link.

only add item from local server is not affected by this limit, because unlike the other methods, you just move the files around on the server and no upload is involved.

no, this limit is not set by G2, it's set by your php / webserver environment, see the faq entry. and that's also why gallery remote / the applet are also affected.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-09-04 18:27

Straight out of the camera from Gallery Remote or the upload applet? Try copying the picture to your harddrive first. I've noticed some applications don't access those types of peripherals very well. I have no idea of GR or the upload applet has this problem, but it's worth a try.

 
JerMe

Joined: 2005-09-04
Posts: 5
Posted: Sun, 2005-09-04 19:09

Well no, not *that* straight off the camera. I just meant they haven't been edited or touched up in photoshop. The images are just JPGs stragith from the camera with no retouching. :-)

nivekiam wrote:
Straight out of the camera from Gallery Remote or the upload applet? Try copying the picture to your harddrive first. I've noticed some applications don't access those types of peripherals very well. I have no idea of GR or the upload applet has this problem, but it's worth a try.

 
jink

Joined: 2005-09-04
Posts: 3
Posted: Sun, 2005-09-04 19:16

I had the same problem, and followed the help in the thread:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=7419

I couldn't edit my php.conf file, so I added the following in my .htaccess file under my gallery directory (as suggested in the thread):

Quote:
php_value post_max_size 80000000
php_value upload_max_filesize 80000000
php_value magic_quotes_gpc off

Now everything is working perfectly! I hope this helps you out, I couldn't get mine working at ALL until this was done.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-04 19:22

instead of the 000000 you can just use M for Mega
php_value post_max_size 80M
although, 80M is really large :)

 
jink

Joined: 2005-09-04
Posts: 3
Posted: Sun, 2005-09-04 19:25
valiant wrote:
instead of the 000000 you can just use M for Mega
php_value post_max_size 80M
although, 80M is really large :)

Ah, makes sense. Will use that in future cases. And yes, 80M is huge, but I like that setting; my camera takes mpeg4 video that can easily surpass 80M even!

 
JerMe

Joined: 2005-09-04
Posts: 5
Posted: Mon, 2005-09-05 15:50

Well... Couldn't find my php.ini file (??)...

But,

php_value post_max_size 80M
php_value upload_max_filesize 80M
php_value magic_quotes_gpc off

in the .htaccess file inside the gallery2 directory seems to have worked. I've uploaded several >2mb jpgs so far using GR.

Thanks for the help!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-09-05 16:03

JerMe, FYI: the first reply in this thread already pointed to information on how to change your .htaccess file. next time, trust the first answer ;)

 
jink

Joined: 2005-09-04
Posts: 3
Posted: Mon, 2005-09-05 18:10
valiant wrote:
JerMe, FYI: the first reply in this thread already pointed to information on how to change your .htaccess file. next time, trust the first answer ;)

That is exactly how I found my help. Thanks! I wanted to point it out clearer to anyone else having this problem. =)

 
gen-o

Joined: 2009-07-03
Posts: 3
Posted: Tue, 2009-07-14 02:00

I have a similar problem. Before I was having the same problem though. I changed my php.ini file to "upload_max_filesize = 25M" and it now takes files from the web browser that are over 2MB but not when using the upload applet. If I select a bunch of image files it will error out on anything over 2MB (Error msg "Upload Failed "";") but upload everything else. And as I said it will upload files over 2MB through the browser upload.

Any help with this?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-14 18:23

Try changing post_max_size too

If that doesn't work or help, start a new thread and fill out the requested information.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gen-o

Joined: 2009-07-03
Posts: 3
Posted: Thu, 2009-07-16 23:03

I figured it out. I created a phpinfo file in the gallery directory (got that from the "How to post here forum") and found that while I did have the max_size,...etc.. set-up correctly in the public_html directory they didn't carry over to the gallery directory. When I ran phpinfo on the public_html directory I had 100M for max size but in the gallery directory it took the ones the shared hosting company had set. I created a phpini file in the gallery directory with the appropiate limits and it's all good now.