Programmatically set name of file to upload in webpage

前端 未结 4 1079
执笔经年
执笔经年 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:04

    There is no way to programatically grab files from a user's computer via the browser. This would be a security violation if a website could just grab things.

提交回复
热议问题