Re: uploading a file via php - i need some simple code
| From: | Lowell Allen | Date: | Wed, 03 Jul 2002 17:38:37 +0000 |
| Subject: | Re: uploading a file via php - i need some simple code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105251@lists.php.net to get a copy of this message | ||
> From: "Phil Schwarzmann" <pschwar@jhmi.edu>
>
> I am having the worst trouble trying to write a tiny simple script that
> will upload a file. Below is my code - can anyone tell me why it's not
> working....
>
> HTML
>
> <form name="form1" method="post" action="upload.php"
> enctype="multipart/form-data">
> <input type="hidden" name="MAX_FILE_SIZE" value="1000">
[snip]
Without looking at your other code, I'll just point out that the value for
MAX_FILE_SIZE is in bytes, so you're specifying a very small files size as
your max. Perhaps you're off by a few magnitudes. For example, "24576000"
would be the value for a 24Mb max size.
--
Lowell Allen