-1

Does anyone have an idea how to send email notification to the user when the file is uploaded?

This file can be uploaded either to the new node or while modifying an existing node.

  • Why would a user need an email for a file he uploads himself, or are we talking about really large files here? (You want the mail as a reminder after uploading the file, but before saving the node?) – Neograph734 Jun 30 '17 at 9:57
  • You might be able to use Rules for this. – Christia Jun 30 '17 at 10:49
  • This cannot be implemented with rules as there is no event for file upload and as for why the user needs the email, this is the spec from the client – Panagiotis Adamopoulos Jun 30 '17 at 13:38
  • Are you using 7 or 8? please tag your question with the version – Nigel Waters Jul 1 '17 at 17:23
1

I know you mentioned that you can't use Rules, but I think you can.

In your condition, just add your file field and set it to "Data value is empty" and negate it.

|improve this answer|||||
  • You'd need to go a bit further, but rules could still handle it. Just need to check whether the node is new, and if not, check whether the file id matches the file id from the previous revision before sending the email – Clive Jul 1 '17 at 17:34
  • That's a good point. I didn't consider that a file could be replaced with another file when the node is updated. – Nigel Waters Jul 1 '17 at 17:35
0

Sorry but I did not put the description. The website which is drupal 7 has media module installed. I want the notification to launch whenever a file is uploaded in the media manager before it is attached to a node.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.