Get a free trial // Grow your CSS skills // Land your dream job

Download image without opening new tab

  • # December 13, 2012 at 8:17 am

    Hi everybody. I have some problem on Joomla!. When i give a link to image, browser opens it in new window, but i want to download it. I read some about “Content-description” to send it each time to header. I don’t know how to implement it. Also i found some PHP scripts like making download.php but it has security problems. I’m using Joomla!. Any idea and help is appreciated.

    # December 13, 2012 at 1:25 pm

    Have you tried [this]( Note: This is obviously only if you’re using an Apache server (there’s no .htaccess on Windows servers…)

    # December 13, 2012 at 3:50 pm

    This is nothing to do with joomla! It’s a php thigh or .htaccsess thing ill find something soon

    # December 13, 2012 at 3:52 pm

    I’ve found something php [here](

    # December 13, 2012 at 4:21 pm

    Thanks @Htmlmainiac, that woked. I created .htaccess on my root folder and pasted codes. In chrome, it directly downloads, In Firefox and Opera, it prompt “Save as..” tab. Anyway, cool. Cheers :)

    # December 13, 2012 at 4:35 pm

    Thanks @jcodex for the nice feedback.
    It was only a google search.

    # December 14, 2012 at 5:43 am

    Actually, it didn’t work on Android. Especially Dolphin browser :(

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed