简体   繁体   中英

Save image from iOS WebApp to Photo Library

Ok so I've got an image that I want users to be able to click a link like the one below and it offers to save, rather than just getting users to click and hold the image. Cant find any documentation about this online, most people are trying to disable the click and hold feature, when I just want a link that does it quicker.

Is there anyway? Heres all i can think of the try but cant get to work.

<a href="himage_link.jpg" download>Save Image to Library</a>

Safari and other IOS browsers only access the filesystem with user input. So, pressing and holding is the only way to save it to the camera roll. It has something to do with sandboxing. Check here: Sandbox_Wiki

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