通过使用ASP形式上传文件 [英] upload a file via a form using ASP
问题描述
我有一个.asp页简单的HTML表单。我想添加一个字段,让用户通过在飞我的服务器/ FTP方式上传文件。我如何能做到这一点,请有什么建议?
I have a simple html form in a .asp page. I would like add a field to let users upload files via the form on my server/ftp on the fly. Any suggestions on how I can do this please?
这是code,我使用了HTML
this is the code I am using for the HTML
<form name="formUpload" id="formUpload" method="post" enctype="multipart/form-data" action="">
<table valign="top" align="left" bgcolor="PaleGoldenRod" width="300px" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="PaleGoldenRod" valign="top">
<td width="300px">
<input type="file" size="50" name="file1">
<input type="submit" name="submit" value="Upload File">
</td>
</tr></table></form>
我不知道如何做到这一点,因为我从来没有做过这样的事情。
I have no idea how to do this because I never had done something like this.
推荐答案
您可以尝试下面的jQuery插件为'飞'的上传处理:
You could try the following jQuery plugin to handle 'on the fly' uploads:
但像Symeon说,你将需要一个ASP经典组件将处理服务器上的文件上传。我用了 FreeASPUpload 版本了几次,就像一阵微风。
But like Symeon said, you will need an ASP Classic component that will handle the file uploads on the server. I used the FreeASPUpload version a couple of times, works like a breeze.
这篇关于通过使用ASP形式上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!