Re: Uploading Files with PHP
| From: | Lerp | Date: | Thu, 21 Feb 2002 20:16:29 +0000 |
| Subject: | Re: Uploading Files with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85769@lists.php.net to get a copy of this message | ||
Hi there :) Did you set a max file size in your upload form? See my form
below, notice the 'MAX_FILE_SIZE' value='102400' part within hidden field.
This should appear before the rest of the form. You can adjust this value as
you wish.
<form action='resumeupload.php' method='post'
enctype='multipart/form-data'>
<input type='hidden' name='MAX_FILE_SIZE'
value='102400'>
<font color='#663399' face='verdana'
size=2><b>Upload
Resume:</b></font>
<input type='file' name='userfile'
style='background-color:
#FFFFFF; font-family: verdana; font-weight: bold; color: #9999FF; font-size:
9pt;'>
<input type='submit' value='Upload!!!'
style='background-color: #FFFFFF; font-family: verdana; font-weight: bold;
color: #9999FF; font-size: 9pt;' name="submit">
</form>
Hope this helps, Joe :)
"Chuck "Pup" Payne" <cepayne@magidesign.com> wrote in message
news:B89AB813.977D%cepayne@magidesign.com...
> Hi,
>
> I am trying to set a small script that would let my clients upload file
with
> a Explorer or Netscape, but the problem is it would let me upload any file
> that is great than a 1MB. We get an error that the file "none" could not
be
> read.
>
> I have set the upload_tmp_dir=/tempupload is has been chmod to 777,
php.ini
> as been set to 20MB, I know that is a lot but we are engingeering company
> that work with CADD files.
>
> Any clues where to look? The PHP 4 Bible from IDG states that we have to
> under HTTP uploads, but nothing else. Is there some where on the net that
> explains better what I have to set up, turn on, or haven't done?
>
> Thanks,
>
> Chuck
>