-1

I want to download images in iphone. It appears to be opening in a new window rather than downloading inside Chrome and Firefox etc.anybody any idea why this is happening?

Anil
  • 45
  • 6
  • 1
    Possible duplicate http://stackoverflow.com/questions/22094489/image-is-downloading-in-chrome-but-not-in-safari – Web Dev Guy Feb 09 '17 at 05:16
  • 2
    Possible duplicate of [image is downloading in chrome but not in safari](http://stackoverflow.com/questions/22094489/image-is-downloading-in-chrome-but-not-in-safari) – Amit kumar Feb 09 '17 at 05:37

1 Answers1

0

Please check your mime type...may be it will help you.

$mimetypes = array(
    'png' => 'image/png',
    'jpg' => 'image/jepg',
    'gif' => 'image/gif',
    'css' => 'text/css',
    'js' => 'application/x-javascript'
);
Nipun
  • 157
  • 5