Protecting download files

Results 1 to 2 of 2

Thread: Protecting download files

  1. #1
    octacube Guest

    Default Protecting download files

    I&#039ve got this far:<BR><BR>Set oFM = CreateObject("MyOwn.FileManager")<BR>Set oBS = oFM.OpenBinaryFile("c:My Documentsdownload.exe")<BR>Response.BinaryWrite( oBS.ReadAll )<BR><BR>But this sends the file by name of downloadform.asp not download.exe<BR>The problem is how to change the file name for user, not the server so user would get download.exe file...<BR>I&#039ve seen this kind of code in action (for example in download page).<BR><BR>Thanks in advance.

  2. #2
    Octacube Guest

    Default Got it...

    Couldn&#039t be easier...<BR>Response.Addheader "Content-Disposition", "filename=download.exe"<BR><BR>And this takes care of all...

Posting Permissions

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