Programmatically set name of file to upload in webpage

前端 未结 4 1104
执笔经年
执笔经年 2021-01-15 15:21

Is there a way to programmatically set the name of a file to be uploaded from a web page? I suspect that browser security restrictions make this impossible, but I\'m hoping

4条回答
  •  深忆病人
    2021-01-15 16:10

    No, you cannot do this without a client-side application or special plug-in.

    Browser security doesn't allow the server to obtain information about the hard drive contents of the client.

提交回复
热议问题