Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Download image without opening new tab

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41318
    jcodex
    Member

    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.

    #117258
    JoeShmoe
    Member

    Have you tried [this](https://css-tricks.com/snippets/htaccess/force-files-to-download-not-open-in-browser/)? Note: This is obviously only if you’re using an Apache server (there’s no .htaccess on Windows servers…)

    #117294
    jcodex
    Member

    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 :)

    #117351
    jcodex
    Member

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.