By i25 on
I'm using the webforms module and it's working great. However, I need to allow users to attach files to the messages they're sending through the webforms. How do I do this?
I need just a browse button where they can browse and attach a file of max size 1MB.
Thanks.
Comments
I found and enabled the file
I found and enabled the file attachment setting in the webform content type, but I still don't see the attachment option when I navigate to the webform. Please help. Thanks.
Form Component
If you go to the webform and edit, then go to form components, you should be able to add a field with the type "file". This allows you to add a field for uploading a file. Just choose which file types you want to accept and what the max file size you want and click the submit button. The field should then be added to your form.
Awesome! That was easy.
Awesome! That was easy. Thanks!
By the way, are there any
By the way, are there any file types that I should stay away from allowing for the sake of safety?
I plan to allow gif, jpg, png, doc, txt, and pdf.
Browse server for files?
Is there a way to allow users (admins only in my case) to browse the server for files to be uploaded into a webform, instead of only allowing them to browse their local machine?
My situation is that users are submitting files, and admins are editing the submissions and re-saving them; however, due to http://drupal.org/node/431120, the files are not re-included by default. I'd like to give admins the ability to browse the server to re-attach uploaded files more easily.