Upload and Download with one page

kuboX

New Member
I created asp form which supported download and upload functionality. see below\[code\]<html> <head> <title>Testing</title> <script type="text/javascript"> function clickUpload() { document.getElementById("UploadFile").click(); } function clickDownload() { document.getElementById("DownloadForm").submit(); } function MakeUpload() { document.getElementById("UploadForm").submit(); } </script> </head> <body> <form action="Test1.asp"> <input type="button" value="http://stackoverflow.com/questions/12814757/Upload" onclick="clickUpload();" /> <input type="button" value="http://stackoverflow.com/questions/12814757/Download" onclick="clickDownload();" /> <form id="UploadForm" action="test3.asp" enctype="multipart/form-data"> <input type="file" id="UploadFile" onchange="MakeUpload();" style="display:none" /> </form> <form id="DownloadForm" action="Test4.asp"> </form> </form> </body></html>\[/code\]In the moment, the upload doesn't work. How can I solve this? Thanks.
 
Back
Top