javascript - How to download few files in iphone via JS? -
I have a website where a user can download some files automatically, I used it in JS, which is hidden Creates a iframe tag:
& lt; Iframe src = "/ path / to / file1.jpg" /> & Lt; Iframe src = "/ path / to / file2.zip" /> & Lt; Iframe src = "/ path / to / file3.exe" /> In response content-type: attachment header. It works in PC browsers, but does not work in the iPhone. Is there a way to download some files in the iPhone?
Safari does not allow file downloads on iPhones. So (the iPhone is not a jailbreak) you have no chance.
You can only display images (in the browser) and save them locally on your phone.
Comments
Post a Comment