Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
06-27-2011, 08:41 PM #1
- Join Date
- Jun 2011
- Thanked 0 Times in 0 Posts
Need inputs on making a file downloader
I'm just starting CGI. My current situation is I have a html site that asks user for input, and then that input is sent to a perl script running on the server, and then an output file is generated from that script and stored temporarily on a server directory. This is all done.
Now I wish to allow the user to be able to download that output file, and ONLY that output file (i.e. cannot see or download the other output files that may be present in the same directory).
Any sample code or module that can achieve this will help a lot! Thanks!
07-07-2011, 05:40 PM #2
- Join Date
- Jul 2011
- Thanked 1 Time in 1 Post
I am not really sure why you want to do it but I think this kind of easy scripting. You need to make sure though that this is being filtered correctly to avoid all the output file being downloaded. I am pretty sure that you can write it using a perl script.
Last edited by ShaneC; 07-07-2011 at 07:10 PM. Reason: Signature Rule Violation