Very short asp upload code with two source file fields and a description field.
| Upload - Simple asp upload | |
|---|---|
<%
Dim Form: Set Form = CreateObject("ScriptUtils.ASPForm")
If Form.State = 0 Then
Form.Files.Save "C:\Uploads"
Description = Form("Description") 'Do something with <input name=description>
Else
'Handle other form states, errors.
End If
%>
<Body>
<form method="post" ENCTYPE="multipart/form-data">
<input type="submit" value="Upload the files >>"><br>
File 1 : <input type="file" name="File1"><br>
File 2 : <input type="file" name="File2"><br>
Description : <input name="Description">
</form>
</body> | |
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz