in reply to Re: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
in thread Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file

I am running my script via WAMP server, with the script file located in /www folder. Where should I put my files, so that they can be downloaded.!! ??
  • Comment on Re^2: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file

Replies are listed 'Best First'.
Re^3: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
by Corion (Patriarch) on Nov 05, 2014 at 11:52 UTC

    This is a browser configuration issue.

    I guess that, for example, /www/download might be a good place for your files.

    You need to learn about how your webserver maps URLs to files and appropriately configure the webserver. First get the URL download working without your script by going directly to the URL with your browser. Then you can generate the URLs from your script.

      ok, but what will be the path for opendir, will it be my $dir='/www/Documents' or will it be $dir='C:/wamp/www/Documents ...? What is the default directory if i dont give any path?

        There is no default. You should always give an absolute path.