Re: Uploading a file
| From: | Jason Wong | Date: | Fri, 25 Jan 2002 06:27:08 +0000 |
| Subject: | Re: Uploading a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82063@lists.php.net to get a copy of this message | ||
On Friday 25 January 2002 13:20, Ronald Tezuka wrote:
> To keep this arguement from going on indefinately one thing I know that I
> haven't seen anyone commenting on is the fact that even if MAX_FILE_SIZE is
> optional, the HIDDEN element is not optional. Somewhere on those PHP pages
> it says that you need to have one hidden element. MAX_FILE_SIZE is the
> recommended one. If you don't want to limit yourself, then just set a huge
> MAX_FILE_SIZE limit. On second thought that might be HTML protocol, but
> either way you still need that one hidden element. Just put it in and that
> should get rid of a couple headaches.
I don't know where you get the HIDDEN element from -- do you have the
relevant source? I just use something simple like:
<form name="upload" enctype="multipart/form-data"
action="repository.php"
method="post">
Upload file
<input type="file" name="file">
<input type="submit" name="action" value="Upload">
</form>
which works fine for me!
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Love means nothing to a tennis player.
*/