When files are uploaded via webform, the attachment is stored in filesystem. Is there a way to store the attachment in database blob field?

1 Answer 1


You could read the field and write the contents in the database. This could be done in a custom submit handler to the webform form.

  • Any pointer about "custom submit handler"?
    – ohho
    Commented Mar 9, 2012 at 9:53
  • $from['#submit'] see form reference at api.drupal.org and hook_form_alter
    – googletorp
    Commented Mar 9, 2012 at 10:24

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.