in reply to Re: Upload-dialog and CGI-download possibilities
in thread Upload-dialog and CGI-download possibilities

Thanx BUU!

So I'd have to do another .cgi that's just for passing users the files? and then have "Content-type:application/octet-stream\n\n" there? Would I just have to do an open..etc. print..etc ?
  • Comment on Re: Re: Upload-dialog and CGI-download possibilities

Replies are listed 'Best First'.
Re: Re: Re: Upload-dialog and CGI-download possibilities
by Juerd (Abbot) on Apr 11, 2002 at 14:43 UTC

    So I'd have to do another .cgi that's just for passing users the files?

    Possible, but inefficient, and if it's a large site, it will add a lot to your server's load. I'd create a separate directory, and tell my webserver to force the content type for all files in it.

    If you have Apache (1.3), have a look at the ForceType directive.

    Yes, I reinvent wheels.