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):
Posts: 32509
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
Posts: 5
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......
Posts: 32509
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.
Posts: 5
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.
Posts: 16504
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.
Posts: 5
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.
Posts: 3
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):
Now everything is working perfectly! I hope this helps you out, I couldn't get mine working at ALL until this was done.
Posts: 32509
instead of the 000000 you can just use M for Mega
php_value post_max_size 80M
although, 80M is really large
Posts: 3
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!
Posts: 5
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!
Posts: 32509
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 ;)
Posts: 3
That is exactly how I found my help. Thanks! I wanted to point it out clearer to anyone else having this problem. =)
Posts: 3
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?
Posts: 16504
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
Posts: 3
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.