For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > September 2006 > Re: problems with uploading files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: problems with uploading files
Andre Frashek

2006-09-26, 6:57 pm

Hi,

another problem you might have here is your <form> tag.
Normally you use:

<form action="getFiles.php" enctype="multipart/form-data" method="post">

if you create an input field for a file upload. Without the enctype
declaration it might not work.

Andre

Glenn Coyle wrote:
> <form action="getFiles.php" method="get"><br>
> Type (or select) Filename: <input type="file" name="uploadFile">
> <input type="hidden" name="MAX_FILE_SIZE" value="25000" />
> <input type="submit" value="Upload File">
> </form>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com