in reply to Upload-dialog and CGI-download possibilities

If you return Content-type:application/octet-stream\n\n it forces a download
  • Comment on Re: Upload-dialog and CGI-download possibilities

Replies are listed 'Best First'.
Re: Re: Upload-dialog and CGI-download possibilities
by kodo (Hermit) on Apr 11, 2002 at 12:39 UTC
    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 ?

      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.