Forum Moderators: coopster

Message Too Old, No Replies

Upload Multiple Image problem

         

lorax

6:08 pm on Jun 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here's the form:
Thumbnail Image File: <input type="file" name="proj_thumb_image">
Fullsize Image File:<input type="file" name="proj_full_image">

On the form Action page (where the form contents are handled) I have place the following code

echo "<p>Thumb temp file name: ".$_FILES['proj_thumb_image']['tmp_name']."</p>";
echo "<p>Full temp file name: ".$_FILES['proj_full_image']['tmp_name']."</p>";

I get a real name for $_FILES['proj_thumb_image']['tmp_name'] but I get 'none' for $_FILES['proj_full_image']['tmp_name']. I have a feeling this is going to be one of those 'DOH' moments.

coopster

7:28 pm on Jun 10, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Looks fine to me. How about the image size of your test file, is that an issue?

<input type="hidden" name="MAX_FILE_SIZE" value="30000" />

coopster

7:33 pm on Jun 10, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You may want to also check the other relative directives in
php.ini
:

file_uploads [php.net]
upload_max_filesize [php.net]
upload_tmp_dir [php.net]
post_max_size [php.net]

lorax

7:41 pm on Jun 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



DOH!

I had set my max file size and then completely forgot about it. I knew it would be something obvious! Thanks coopster.