Jump to content

Doubts in coding "File download control"


ravikiran

Recommended Posts

Hi Friends,

 

I am designing a website where some users upload documents specific to some other users with whom they are related.

 

To come over the issue of replacing old files (because of common file names) we are adding a suffix to every file uploaded and storing the original name in DB. When the user tries to download the file, we are recreating the file temporarily with the original name, allowing the download and then deleting that file.

 

When I try to download and click on the file - Pop-up blocker is stopping the file download. How can we by-pass this feature and download it?

 

In some websites I observed that a new window is opened and user is displayed with "Open", "Save" "Cancel" buttons and if the user clicks on Open/save, download starts immediately and the new window is closed automatically. I want to apply such functionality. Please guide me.

 

regards,

Ravi.

Link to comment
https://forums.phpfreaks.com/topic/124433-doubts-in-coding-file-download-control/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.