I am running Drupal 7.43 and Webform 4.12. All the webforms with a file field are not sending either the file link or the attachment. May I please have some pointers on where I have it wrong. Below is the email that is being sent and shows that the file value is not being sent:-

Submitted on Thursday, March 17, 2016 - 05:07
Submitted by anonymous user: 41.60.87.38
Submitted values are:

Fullname: Kupa Maposa
Email Address: xxxx@gmail.com
Copy of ID:

If I physically check files uploaded, I can see them on the server but they are not linked to the form results. Any help will be greatly appreciated.

Comments

webmaposa created an issue. See original summary.

silentbob’s picture

I had the same Problem and came googling to this thread.
Problem was webform was sending emails on stage server but not on production server.
I had to make sure under /admin/config/system/mailsystem the Site-wide default MailsystemInterface class is set to MimeMailSystem.
Now it works for me. Hope it helps someone reading this thread too.

C13L0’s picture

I'm also having this issue since updating core and webform. We do not have mailsystem module installed.

Edit: I would like to clarify this issue happens with anonymous users only.

C13L0’s picture

Title: Webform not sending attachments » Webform not sending attachments when submitted by Anonymous user
rjwilliajx’s picture

I am having the same issue - and yes, I can verify the attachments are on the server. Drupal 7.43 and Webform 7x-4.8.

rjwilliajx’s picture

Not sure if you are still having issues with this, however if you attach the file and hit Submit without using the Upload button, the file does attach properly. You can hide the Upload button from your users by using CSS.

gfaustin@unm.edu’s picture

It seems to happen with anonymous users only. I tried submitting as a logged in user as an anonymous user. Worked the first time and failed the second time respectively.

turbogeek’s picture

I'm having the same issue (Drupal 7.43 and Webform 7.x-4.12). Appears to only affect anon users when using the upload submit. Using the webform submit works so a temp fix is (as mentioned) either CSS hide the upload submit button or possibly form alter it out, though I don't know if the latter will cause other issues.

Katharine_Gates’s picture

See here: https://www.drupal.org/node/2675170
Upgrade to 7.x-5.0 should fix this problem.
Webform Validation can also cause this problem. I had to disable.

DanChadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

I think #9 means Drupal 7.50.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Anonymous’s picture

#2 did the trick.
I did all the other things but missed this one thing.
Thanks, silentbob! After searching for ages I found your advice!

ccarnnia’s picture

using webform 7.x-4.19 on drupal 7.61 , if i go to:

  • /admin/people/permissions
  • under Mime Mail heading
  • and allow anonymous user to "Send arbitrary files"

then webform submissions by anonymous users will contain file uploads as email attachment.
as you can see on the page this is a security risk.
most organizations have a way to audit the email attachment as they come in.

damien_bates’s picture

#2 Worked for me to fix the issue. Changing the site-wide setting to MimeMailSystem solved the file attachment problem. Now to figure out exactly how this setting was changed in the first place.
/admin/config/system/mailsystem