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


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.

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

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.