thibaud-rohmer / PhotoShow

A free web gallery in PHP with drag-n-drop support
http://www.photoshow-gallery.com
502 stars 151 forks source link

Download link problem on iOS #295

Closed saintger closed 8 years ago

saintger commented 8 years ago

On iOS, the download link is not behaving correctly. On my desktop firefox, when I click on the download link (for an image or for a video), a popup box is opened and ask me where I would like to save the image/video. On iOS (on Chrome and Safari), if I click on an image download link, the image is immediately opened and if I click on a video download link, I only go to a blank page with a little blank square.

This is especially bothering for videos, as WebM videos are not easily played on iOS. If the video URL download link was correct, at least we could read the videos on another application (VLC for instance).

Considere for instance the WebM demo page: http://www.webmfiles.org/demo-files/ On iOS if you click on the WebM file URL, you have the option to open the stream in other application (VLC for instance).

So there must be something strange in the way PhotoShow is giving the download link URL.

saintger commented 8 years ago

Just noticed that it is not limited to iOS. I've tried on Firefox, and a dialog box is opened which proposes me to save the file under the correct name "example.mp4" but with the type JPEG (maybe it's the MIME type transmitted ?). On Safari (desktop version), the file is directly stored under the name "example.mp4.jpeg".

saintger commented 8 years ago

Solved (among other things) through this PR : https://github.com/thibaud-rohmer/PhotoShow/pull/298