doutu7123 2014-02-18 10:22
浏览 64

上传文件而不使用Web控件

I am writing a fingerprint web application. I will read the fingerprint from user using ActiveX controls.

After that, I will get the image in the webpage. I found that the examples I found in the web requires users to click an upload image button and choose image from it.
Like the example below:

<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>

Some tells me that I need to use ftp to upload the file.
Can I have another choice? The best method is that I can use Http to upload.

  • 写回答

1条回答 默认 最新

  • dtu72460 2014-02-18 10:24
    关注

    You could send a data URI to the server using AJAX

    Convert Data URI to File then append to FormData

    However if you are using ActiveX, why not have the ActiveX send the data to the server from within the ActiveX?

    评论

报告相同问题?

悬赏问题

  • ¥15 有人能看一下我宿舍管理系统的报修功能该怎么改啊?链表那里总是越界
  • ¥15 cs loadimage运行不了,easyx也下了,没有用
  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析