简体   繁体   中英

JavaScript library to upload a file

是否有一个图书馆可以让我下载用户的个人资料照片并上传?

If you want to just retrieve the file then you are best off just using an img tag and changing where it points to, but, if you want to access the hard drive of the user, it really depends on how limited of browser support you want.

You may want to look at DOM Storage though.

These links may help: http://msdn.microsoft.com/en-us/library/cc197062(v=VS.85).aspx

https://developer.mozilla.org/en/DOM/Storage#localStorage

In Firefox 3.6 they added a File API: https://developer.mozilla.org/en/Using_files_from_web_applications

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM