upload file from client to server without openFile dialog

后端 未结 2 1560
攒了一身酷
攒了一身酷 2020-12-12 05:02

i am trying to create an aspx page where i can directly upload a file from the client to the server without user intervention. I would like to do something like when the use

2条回答
  •  情深已故
    2020-12-12 05:31

    You should post the contents of the file.

    That is what the browser does when using the file upload dialog. The browser opens the file and sends the contents over HTTP.

    For example, you can post the contents using wget --post-file=file.txt. On the server, you can then read the POST data to retrieve the contents of the file.

提交回复
热议问题