【问题标题】:Upload file without using web control不使用网页控制上传文件
【发布时间】:2014-03-18 00:39:16
【问题描述】:

我正在编写一个指纹 Web 应用程序。我将使用 ActiveX 控件读取用户的指纹。

之后,我将在网页中获取图像。我发现我在网上找到的示例要求用户单击上传图片按钮并从中选择图片。
如下例所示:

<form action="upload_file.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>

有人告诉我需要使用 ftp 上传文件。
我可以有其他选择吗?最好的方法是我可以使用Http上传。

【问题讨论】:

    标签: php html asp.net activex


    【解决方案1】:

    您可以使用 AJAX 向服务器发送data URI

    Convert Data URI to File then append to FormData

    但是,如果您使用 ActiveX,为什么不让 ActiveX 从 ActiveX 内部将数据发送到服务器?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-25
      • 2021-05-18
      • 2016-11-10
      • 2010-12-22
      • 2020-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多