Results 1 to 2 of 2

Thread: Response.ContentType

  1. #1
    Inanna Guest

    Default Response.ContentType

    Within a file called fileaction.asp I have functions for the various file manipulations like copy, move, delete "thisfile" and thought it would be nice to add the download option to make it complete. However when I call the fileaction.asp file from the fileactionoptions.asp file that sends all the info to be worked on (file source, destination etc. etc.) all works fine for all the options except download.<BR>I read some stuff that you can use Response.ContentType to pop up the dowload box and in my function I have<BR><BR>Response.ContentType = strFileSource<BR><BR>Which pops up the download box fine BUT the file it is offering me to download is fileactionoptions.asp (the file that called fileaction.asp to do all the work) What do I have to do to get the Response.ContentType to point to the file Path I have stored in the strFileSource variable?

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.ContentType

    I think what you may need to do is after the Response.ContentType, add:<BR><BR>Response.AddHeader "content-disposition", "inline; filename=" & YourFileName<BR><BR>Just a thought, it may need a tweak or two, but that is the right direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts