in reply to uploading
In order to upload a file, you must have at least the following in your HTML (this is just off the top of my head):
<form enctype="multipart/form-data" method="post"> <input type="file" name="somefile"> <input type="submit"> </form>
The reason you must have that is because then the user must actively select a file to upload by either browsing for the file or input the file path and name into the input box. If you could just supply the filename in a cookie, this would be a major security hole because you could silently upload files without the user's consent.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: uploading
by PriNet (Monk) on Feb 25, 2002 at 22:46 UTC | |
by Ovid (Cardinal) on Feb 25, 2002 at 22:53 UTC | |
by PriNet (Monk) on Feb 25, 2002 at 22:55 UTC | |
by thraxil (Prior) on Feb 25, 2002 at 22:55 UTC | |
by PriNet (Monk) on Feb 25, 2002 at 22:58 UTC |