control the working directory for <input type=“file”>?

前端 未结 6 1536
梦谈多话
梦谈多话 2020-11-29 11:11

Full story: I am working on a project for my company that requires users at each of our locations to upload reports generated by a third party software. All reports generate

6条回答
  •  一向
    一向 (楼主)
    2020-11-29 11:25

    This works. Here I needed to make sure the user has used input image file on the clients local image path. The UrlExists simple checks if the file could be loaded to the known path + file name. I also needed to make the input look better than the browsers. The trick here was placing I canvas with more work than shown here to mask the input. Setting input opacity to 0 , Here set to 0.5 so you can see the trick.

        
        
        
        
     
    

提交回复
热议问题