Before a file downloaded

Events happening in the community are now at Drupal community events on www.drupal.org.
Elias's picture

Hi there, i am new to rules and i am wondering if the following can be achievable with rules and if yes, how?

1) I have made a sandbox drupal installation
2) I have create a custom content type called "Services" (in order to be created pages for service 1, service 2, etc.)
3) In this content type i have create a cck filefield upload in order to attach pdf files on the "Services" pages
4) I have create a webform ,where the anonymous user can submit his personal information such as first -last name, email etc.

So my questions are:

*how can be achived when the anonymous user click on the link in order to download the pdf, to be redirected to the webform
*when the user submit the personal information, then he will be able to download the file, this is a procedure that webform deals with it or can be achieved again with Rules module?
*Are the above thoughts needs 2 Rules to be created?
*Do i have to make for each pdf file different webform?
*how do i know which pdf file has been downloaded?

I really appreciate any help...

Comments

Hum...

itangalo's picture

This one is really difficult.

The links to PDFs (and other files) are usually direct links to the files on the server, which means that Drupal can't intercept the handling of the file.

I would suggest an approach where the file in the service node isn't a file, but a node reference to a webform. Then, when the webform submission is completeted, there is a redirect to the file (or a link to the file is displayed). As far as I know, there are no Rules actions available for this, so there will be quite some work to get it done.

Unless you have a private file system, you won't be able to stop people from downloading the files if they have a link to it. That is probably worth considering.

Good luck on this difficult quest!
//Johan Falk, NodeOne, Sweden
Want to learn more Rules? Check out my latest screen cast series!

webit's picture

Can someone help me create a download request form.
I have created a website in drupal, i have uploaded a lot of PDF file with article( a PDF link appear at the bottom of the content) When some click on the pdf link it should take to a form page > after user submit the form> send a mail to the user with attachment selected.

This automation should happen every time i upload any files with the content created.

Thanks
Sag

Would this work?

Amy_M's picture

Would this work? http://drupal.org/project/webform_protected_downloads it's still in dev version but might be worth a shot

Well...

Elias's picture

Thank you for your suggestion,

I will try to work on your approach!!!

try the squeeze page module.

ndwilliams3's picture

try the squeeze page module. http://drupal.org/project/squeeze

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: