Mobile browser download file: not working

483 views Asked by At

On mobile browser, How to save a file from a web page? For example, save a picture into camera folder.

I set response header:

response.setContentType(contentType);
response.setHeader("Content-Disposition", "attachment;filename=Foo");

It works on desktop browser. But nothing happens on mobile browser(safari, chrome on Iphone). Thanks for help.

0

There are 0 answers