Simple data form before anonymous download.

barryrwuk - January 21, 2009 - 15:57

Hello,

I have a download area (Filemanager / Attachment modules) on my site from which users can download various PDF (whitepaper) documents.

I want anonymous users to be able to download these files. My client would like to capture some information from the user the first time they wish to download a file. This information (Name, Company, Email address...) will be sent to my client by email.

After the form is submitted the download can begin.

Future downloads will skip the form (Using a Cookie?).

Does anyone know of an existing module that provides this functionality - or similar?

Are there any suggestions of how I might achieve this functionality from scratch?

Thanks,

BarryRWUK

I'd like to see the answer

Barrett - January 21, 2009 - 19:25

I'd like to see the answer to this too. I think you're on track with the cookie idea. How it would all be implemented I don't know though.

Ah, but how?

barryrwuk - January 22, 2009 - 15:45

I'm thinking that when a download link is clicked for the first time (when there is no cookie) the user is redirected to the simple form. On submission a cookie is returned to the user and the download proceeds as normal.

On future visits the presence of the cookie allows the form to be skipped and the downloads start automatically.

I guess this could probably be done by adding in the PHP code that checks for the cookie into the node with the download. Then, of course, we get into passing the details of the download in question to the form so that the correct download can begin upon submission - which is where I get a little stuck.

This does seem like something that would be useful to many people. Ideally it should be a module - unfortunately my expertise is currently not proficient enough yet.

BarryRWUK :-)

email download

joserey - May 14, 2009 - 03:53

You may want to take a look at this too http://drupal.org/project/email_download

ATIiNteractive Philippines
http://www.ati.da.gov.ph

Looks so good - we need email download for Drupal 6

eff_shaped - June 17, 2009 - 09:51

Maybe the maintainer will move on this, if enough people show an interest.

Here's the port to D6 feature request queue -- http://drupal.org/node/323625

 
 

Drupal is a registered trademark of Dries Buytaert.