Friday 15 July 2011

php - Rename pdf file to be downloaded on fly -


Given: All uploaded PDF files on the server are prefixes with timestamps, later users can download these files again. Could.

Question: When I give the option of downloading a PDF file, the name of the file looks ugly and long. How can I change something like this name so that when the user downloads this file, the name does not look weird?

Do I have to make a copy, because there is no alternative to rename the original file? Will there not be an additional overhead for each downloadable file? Obviously there will be another additional step to delete the copied file?

Is it possible to download the file completely on the client side after changing the file name?

What do you suggest?

Something like this:

   

No comments:

Post a Comment