Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. URL Problem

URL Problem

Scheduled Pinned Locked Moved Web Development
helplounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mri1a
    wrote on last edited by
    #1

    Hi!! Actually i want to provide my users a link from where they can download documents. The link to download the document will be sent in their inbox. What should I do to generate a random ..url everytime depending uopn the document he/she wants to download. Apart from this the URL should only be active for a particular period of time. Regards

    Mrinal

    E 1 Reply Last reply
    0
    • M Mri1a

      Hi!! Actually i want to provide my users a link from where they can download documents. The link to download the document will be sent in their inbox. What should I do to generate a random ..url everytime depending uopn the document he/she wants to download. Apart from this the URL should only be active for a particular period of time. Regards

      Mrinal

      E Offline
      E Offline
      Eduard Keilholz
      wrote on last edited by
      #2

      First, the Guid.NewGuid().ToString() provides a pretty unique string, you can store that in a database and make sure you known what file should be downloaded when a user hits that url... then send a mail with an url containing that guid http://www.yourwebsite.com/?download=_your-guid_ if the user hits the page you can return the requested file, since you know (int your database) what file to return for this specific string and even monitor that the file download has started.... Then after a certain amount of time disable that unique string or even remove if from your database if you're sure the download will complete succesfully.

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups