This question follows Override webform module submit

Based on this answer, I used the rules module to create a node after webform submissions.

My webform contains an <input type="file" />

for other <input type="text" /> I used this solution to How to save webform submissions data in fields using rules module

How can I add this file data in the field-image table?

  • About your last phrase: (1) please explain what you mean by "file data", is it only the PATH where the file is stored and (2) is "field-image" the machine name of your node in which you want to store the path of that file? Commented Mar 29, 2018 at 10:48
  • Yes! field-image is the machine name of my node. And for the first => how can save data where <input type="file" />
    – A.Sana
    Commented Mar 29, 2018 at 11:17
  • OK, you answered (2) in my prior comment, but NOT (1). Can you try again? Commented Mar 29, 2018 at 14:33
  • Thanks @Pierre.Vriens, yes it's only the PATH where the file is stored
    – A.Sana
    Commented Mar 29, 2018 at 15:47

1 Answer 1


The tricky part of what you're trying to do, seems to be related to correctly specifying the filename of the attached file (= the value to be stored in your field-image field). For this, have a look at what is suggested in Comment # 25 of the support issue (not bug ...) #1431572 and which states that the correct way to do so is something like so:


Use Rules debugging

This question is pretty tough to answer with the limited info you provided (and without access to "your" site). Therefor, if needed, you might also consider some Rules debugging, by (temporary) enabling the Devel module, so that you can (temporary) add a Rules Action like "Display a value" (in your case of the entire node/webform that's used to submit that attached file). For way more details about such debugging, refer to Rules debugging, as explained in the answer to "How can I display the value of a variable inside a condition?".

  • the problem is my rules does not allow the import of values of type other than text. I added a text field to my content type and using the hook_node_presave to synchronize the two fields.. @Pierre.Vriens, Thank you
    – A.Sana
    Commented Mar 30, 2018 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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