created 1st album, can't upload photo: "no photo uploaded"

mnr102

Joined: 2009-03-05
Posts: 3
Posted: Thu, 2009-03-05 04:42

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://localhost/gallery-1.5.10/albums.php
Gallery version: 1.5.10
Apache version: 2.2
PHP version (don't just say PHP 4, please): 5.2.9
Graphics Toolkit: ImageMagic
Operating system: Windows XP, SP3
Web browser/version (if applicable): firefox 3.0.6

Hi,
I've installed Gallery 1, read all install docs & followed directions. I went throught setup wizard, and successfully created an album. But when I try to upload my 1st photo thru form, it fails, showing error "no photo uploaded". I looked at FAQs and other forum posts. The memory available to PHP is 8M, and the photo is 3M, so I should be ok there. File_upload is "ON".

Does anyone know why this is failing? Are there logs somewhere that might tell me why no photos can be uploaded?

Thanks!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2009-03-05 10:00

Hello,

the default upload limit of PHP is 2M, contact your hoster for increasing this value.

Jens
--
Gallery Developer

 
mnr102

Joined: 2009-03-05
Posts: 3
Posted: Thu, 2009-03-05 15:41

Hi Jens,
Thanks for the response & info. I found the following parameters from a google search. I'll check them out tonight & see if this is my problem:

upload_max_filesize - Maximum upload filesize.
post_max_size - Maximum size of POST request. Should be greater than upload_max_filesize.
memory_limit - Maximum memory usage limit per PHP request. Should be greater than upload_max_filesize.
max_execution_time - Maximum execution time for PHP request. Should be longer than expected time to upload file of size upload_max_filesize.

Thanks!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2009-03-05 16:01

The first two params (both) are those who are responsible for your limitation.

Jens
--
Gallery Developer

 
mnr102

Joined: 2009-03-05
Posts: 3
Posted: Fri, 2009-03-06 00:06

That was indeed my problem. upload_max_filesize was set (in C:\Program Files\PHP\php.ini) to 2M, too small for the larger file I was trying to upload.

Thanks for the help!