Programmatically set name of file to upload in webpage

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

    You may be able to do this using some form of browser plug-in. This is more work for you (and there are potential security implications for this beyond those found when you just have users run your app). However, it may prevent a more integrated experience for your users. I'd hesitate to eliminate the application completely, though. Browser compatibility issues are common.

提交回复
热议问题