Does anyone know if it is possible to import a .bmp, .jpg, or .png into the browser of a javascript office add-in? I'd like to be able to import it from the user's file system and insert it into an svg component I have there. Any ideas?
I'm using Excel and I have the javascript Taskpane add-in with an SVG component with some user functionality. Is there a way to get a photo from the user's file system in there?
Well the answer is no, for security reasons websites are not allowed to import/inspects anything from users file system. Until the user him self upload the file to the add-in(web application).
Why do you want to import from users file system, if there are some files you would like to in your add-in deploy them in your web application(add-in web application).
If you want to something from users, you can provide a file upload functionality in your app.
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.