Entry
How do I create a 'File Upload' Dialog box GUI in perl? It should be like the one we see in Yahoo.
Sep 19th, 2003 09:43
Vincent Milette, Prabhu T,
By adding the following HTML code, you specify to the browser that you want to allow
upload.
<input type="File" name="file1">
This is in your html file seen by the visitor
You must add the following part to the form tag:
enctype="multipart/form-data"
So it looks like this:
<form name="NAME" method="POST" action="/cgi-bin/your.cgi" enctype="multipart/
form-data">
That's it!
NB: The form will give you the path and filename to upload...you must do the
subroutines and everything else related by yourself. i.e. file type restriction, file size
limit and so on
HTH