Jump to content

Recommended Posts

Hi to all,

 

    am getting problem to download the CSV and PDF files.

These both files are stored in Test/CustomerName folder and had permission 0755.

 

When am trying to download these two files, it is opening into another page instead of giving the option to download the particular files.

 

Here is the my code....

 

<a href="Test/CustomerName/test.csv">test.csv</a>
<a href="Test/CustomerName/test.pdf">test.pdf</a>

 

I know about the target event functionality in hyperlink.

The csv files and pdf files both are opened in the same page instead of downloading option.

 

Please let me know how to get out from these issue.

 

Thanks in advance....

Link to comment
https://forums.phpfreaks.com/topic/256836-download-problem/
Share on other sites

you will need to use force download, which involves usually a bit of php:

 

you can read up here: http://www.ryboe.com/tutorials/php-headers-force-download

 

that link was just the top of the list when i googled forcedownload, but it will at least give you the insight of what you need to do.

Link to comment
https://forums.phpfreaks.com/topic/256836-download-problem/#findComment-1317190
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.