Results 1 to 7 of 7

Thread: Starting a file transfer...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99

    Starting a file transfer...

    Hey, I'm ussing a session object to password-protect my pages... I don't want someone to be able to just navigate to the URL of a file so I'd like to, via a response, programatically initiate a file transfer ("secure" file downloads)... any idea how this could be done?
    ___________________________
    Chris

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    You can use the web.config to protect your site. It would be much easier IMO.
    Dont gain the world and lose your soul

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99
    Originally posted by DevGrp
    You can use the web.config to protect your site. It would be much easier IMO.
    How?
    ___________________________
    Chris

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Dont gain the world and lose your soul

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99
    Thanks, but how can I use forms authentication to protect against someone just typing in the URL of the "secure" file and downloading it?
    ___________________________
    Chris

  6. #6
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Use the web.config file to protect the directory that the files are in. If a user is not authenticated then wont be able to download the file.
    Dont gain the world and lose your soul

  7. #7
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Question

    I know I'm digging up a really old post here but ... :]

    I've been playing with the web.config file to restrict access (forms autentication) to a set of .pdf files, I can restrict people accessing .aspx files in a certain directory but it just ignores me for pdf file types.

    Do I have to do something to so that .pdf will go through the same routes as the .aspx ?

    Cheers,

    Gary

Posting Permissions

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



Click Here to Expand Forum to Full Width