Append /download to the src attribute you pass to your img tag.

On Tue, Apr 14, 2015 at 9:28 AM, Roberto Verzola <[email protected]>
wrote:

> https://rverzola.wordpress.com/
>
> Try the url above. If you hover over it, you'll see the link behind it
> pointing to a php script. I tried variations of the META HTTP-EQUIV
> tag, but the display always stops and waits for a click. My html code
> looks something like this:
>
> <meta http-equiv="refresh"
> content="1;url=http://urladdres/index.php/s/abcABC123";>
>
> I've tried waiting times from 0 to 3 but it still waits for a click.
>
> Obet
>
>
>
> On Tue, 14 Apr 2015 08:27:14 +0800
> Robert Locke <[email protected]> wrote:
>
> >
> > What’s the URL and how are you referencing it?  Are you setting the
> > mime-type for the returned image?  Something like:
> > header(‘Content-Type: image/jpeg');
> >
> > Cheers,
> > Rob
> >
> > > On Apr 14, 2015, at 7:42 AM, Roberto Verzola <[email protected]>
> > > wrote:
> > >
> > > Hi guys,
> > >
> > > I need more help on this one: I have a WordPress post which
> > > basically points to a php script URL, that will give back a jpeg
> > > file.
> > >
> > > My intention is to generate a URL for the WordPress post so that if
> > > people access this URL from their browser, the browser picks up the
> > > url to the PHP script, gets the jpeg file behind the script, and
> > > displays the jpeg file.
> > >
> > > What the browser instead displays is the alternate text, or if I
>
>
>
>
> > > take that out, a graphic icon that the user must click, before the
> > > image itself is displayed.
> > >
> > > Is there a way to avoid this extra click? My Web browsing says it
> > > is a security feature, but if a jpeg file is behind the php, and
> > > the user had already requested a jpeg file, it seems to me the
> > > extra click is not necessary.
> > >
> > > Thanks in advance!
> > >
> > > Obet
> > > _________________________________________________
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > http://lists.linux.org.ph/mailman/listinfo/plug
> > > Searchable Archives: http://archives.free.net.ph
> >
> > _________________________________________________
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to