开发者

Html/JS - how can i open file dialog and send the chosen file

开发者 https://www.devze.com 2023-03-08 04:00 出处:网络
I want to open a file dialog, and send the chosen file (using xmlHttpRequest object) with Basic Authentication header.

I want to open a file dialog, and send the chosen file (using xmlHttpRequest object) with Basic Authentication header. I understand that it is a problem to receive 开发者_运维问答the file content.

What is the best solution?


You could use an <input type="file"> as part of a standard HTML form.

0

精彩评论

暂无评论...
验证码 换一张
取 消