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
Comment #2
silentbob CreditAttribution: silentbob as a volunteer commentedI 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.
Comment #3
C13L0 CreditAttribution: C13L0 as a volunteer commentedI'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.
Comment #4
C13L0 CreditAttribution: C13L0 as a volunteer commentedComment #5
rjwilliajx CreditAttribution: rjwilliajx commentedI am having the same issue - and yes, I can verify the attachments are on the server. Drupal 7.43 and Webform 7x-4.8.
Comment #6
rjwilliajx CreditAttribution: rjwilliajx commentedNot 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.
Comment #7
gfaustin@unm.edu CreditAttribution: gfaustin@unm.edu commentedIt 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.
Comment #8
turbogeek CreditAttribution: turbogeek commentedI'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.
Comment #9
Katharine_Gates CreditAttribution: Katharine_Gates as a volunteer commentedSee 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.
Comment #10
DanChadwick CreditAttribution: DanChadwick commentedI think #9 means Drupal 7.50.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commented#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!
Comment #13
ccarnnia CreditAttribution: ccarnnia commentedusing webform 7.x-4.19 on drupal 7.61 , if i go to:
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.
Comment #14
damien_bates CreditAttribution: damien_bates commented#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