View Full Version : Image uploade problem - PHP.ini
MikeSD
05-30-2005, 01:28 AM
I'm using a Gallery software to upload images to my web site. I'm having a problem loading files that are in the 3Meg size range. They are not uploading. I've been told that this is related to some limitations in a PHP.ini file. Problem is I don't see any way to change that.
Here is what others have said about this on their systems:I would get an "Inavlid Image" error on some of the images I was trying to upload using ImageMagick. Debug mode didn't help. I finally found the problem. Apparently the UPLOAD_MAX_FILESIZE value in my php.ini file was set at 2M. I changed it to 6M and now I can upload my images (and movies).
Is there some size limitations placed on PHP uploading that I can change? I mean I can upload 4Meg files, via FTP, with no problems. Just can't do it with a PHP program.
The PHP4.ini file is located at /usr/local/lib/php4.ini but users apparently don't have access to that
How can I get this changed to upload 4Meg files, using PHP Gallery program.
Thanks,
Joseph
05-30-2005, 02:07 AM
Hello Mike,
The UPLOAD_MAX_FILESIZE directive is currently set at 2Meg. This value can not be changed by clients, and is in place to keep the servers running smoothly.
I do believe Gallery has a feature that allows you to upload images via FTP, enter the URL, and it will simply move the files into it's data structure without actually uploading anything via PHP. This should allow you to add your images, if you are unable to edit/save them at a smaller filesize. :)
MikeSD
05-30-2005, 10:24 AM
Ok, now I've found the way to use FTP to upload. Requires an extra step or two but I'll give it a try and see how it works.
Seems that 4M isn't that big a change. Most digital images are below that now.
Actually, this works quite well. Using the PHP form, I had to select photos by filename. But using FTP I can view the thumbnails on my laptop and drag-and-drop them into my FTP client.
Thanks,
Joseph
05-30-2005, 11:25 AM
I don't see any mention of using FTP for the upload, using Gallery.
Upload your images via FTP to your webspace, and then go to the album you want to add the images to. Select the "Add Photos" option from the admin drop-down, and then click on the URL tab in the pop-up. Enter the path/URL to the images you just uploaded, and following the on-screen instructions. :yeah:
Does this really affect the performance of the system that much to put it at a more reasonable rate of 4Meg?
Actually, yes. One of the largest problems we encountered back in the early days (when the limit was much higher) was that people on slower connections (dial-up) would try to upload 3-4Meg files, and obviously that would take a very long time. While they were waiting for the file to upload, the Apache for that proccess would be tied-up until they completed. :eeww:
MikeSD
05-30-2005, 11:40 AM
I have just tried this and it works quite well. I actually prefer this method because I can see the thumbnails on my laptop and drag-and-drop the ones I like to my FTP client.
When I was using the PHP upload form, I had to select from non-descriptive filenames and that was difficult to find the right photos.
Thanks,
Joseph
05-30-2005, 11:44 AM
I have just tried this and it works quite well. I actually prefer this method because I can see the thumbnails on my laptop and drag-and-drop the ones I like to my FTP client.
Glad to hear it. :yeah:
reichnick
06-09-2005, 08:43 AM
Is there a known problem with the Gallery Remote application on FQ? I've had a lot of trouble getting it to work from several different computers (one Mac, one PC). Firefox (on the PC) gave me a warning error that my Mac had not, saying something like "ImageMagick" is not functioning properly and you will not be able to resize or create thumbnails of your images. This is a pity, because while the FTP upload functions (discussed above) work fine for me (the site manager) it's not a viable option for others to upload and this gallery relies on others being able to upload photos easily.
To recap, I have been able to get the URL upload function to work (and the resizing seems to work fine) but uploading through Gallery Remote takes forever and usually breaks (sometimes giving me the message above).
Any thoughts?
Arthur
06-09-2005, 09:24 AM
reichnick, Gallery Remote works locally on your computer and on some systems Imagemagick apparently does not work properly without some help. Have a look at the folowing pages;
http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery-remote.problems.php
(see the user comments)
http://wiki.ehow.com/Get-Imagemagick-to-Work-With-Gallery-Remote
HTH,
Arthur
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.