ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: lordrt on April 16, 2016, 05:10:18 pm

Title: ILA images are downloaded
Post by: lordrt on April 16, 2016, 05:10:18 pm
//Off Topic: The embedded image (in post body) downloaded (somewhat unexpected,) whereas the thumbnail below (attachment area) opened in preview window (whatever you call the large image on screen that can close and still be on post page.... lightbox?)
Title: Re: ILA images are downloaded
Post by: Frenzie on April 17, 2016, 02:42:10 pm
Quote from: lordrt – //Off Topic: The embedded image (in post body) downloaded (somewhat unexpected,) whereas the thumbnail below (attachment area) opened in preview window (whatever you call the large image on screen that can close and still be on post page.... lightbox?)
That's because the one has content-disposition inline (i.e. in browser) and the other attachment (i.e. download). Note that the links are different.
Title: Re: ILA images are downloaded
Post by: Frenzie on April 17, 2016, 05:04:44 pm
Huh, on my desktop I got content disposition inline but on mobile I get a prompt for both (dunno about headers)
Title: Re: ILA images are downloaded
Post by: emanuele on April 17, 2016, 05:48:48 pm
Yes, I put a "note-to-self" in another topic... who know which one. xD (<= yet another reason for 1-bug-1-topic)

Anyway, yes: the URL in ILA lacks the "image" parameter.
I think at the beginning I added it, though due to the fact that it creates few problems when the attachment is not an images I removed it.
Though, it should be there and properly deal with attachments that are not an image.
Title: Re: ILA images are downloaded
Post by: emanuele on June 20, 2016, 09:51:57 am
/me wonders if this was ever fixed

I guess so with the lightbox-like overlay.
Title: Re: ILA images are downloaded
Post by: meetdilip on June 20, 2016, 02:48:31 pm
I have long stopped adding images as ILA using share button. Will try and check.