The full path needs to be indicated, but the user doesn't need to type it all in. By using the file input type, a "Browse" button will be displayed which allows the user to select the file. Here's a snippet of code:
Code Sample:
<FORM ENCTYPE="multipart/form-data" ACTION="fileUpload.php" METHOD=POST>
<INPUT TYPE="hidden" NAME="localDir" VALUE="/">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
<INPUT TYPE="submit" NAME="fileAct" VALUE="Upload">
Filename: <INPUT NAME="userfile" TYPE="file">
</FORM>
|
|