Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lazau Florin 74 posts 210 karma points
    Feb 21, 2017 @ 11:26
    Lazau Florin
    0

    Umbraco Forms - Attach file uploads to email

    Hi all,

    For a form if I check "Attach file uploads to email" and I have a file upload I don't get the email on submission.

    If I uncheck "Attach file uploads to email" I get the email but I have only the path for attached file ( /media/attachedImage.jpg).

    Any help would be appreciated.

    Thanks, Florin

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Feb 21, 2017 @ 15:12
    Alex Skrypnyk
    0

    Hi Florin

    It's default behavior of Umbraco Forms, but you can change it easily just go to your form settings in Umbraco admin. And check this checkbox:

    enter image description here

    It should solve your issue.

    Thanks,

    Alex

  • Mats Stam 66 posts 236 karma points
    Feb 21, 2017 @ 15:41
    Mats Stam
    0

    I'd check your logs. Probably your SMTP having trouble sending the mail with a file or something like that.

    Otherwise it should work. Since my understanding is that your first case when the mail isn't being sent is what Alex posted.

    /Mats

  • Lazau Florin 74 posts 210 karma points
    Feb 21, 2017 @ 17:30
    Lazau Florin
    0

    Hi all,

    This is the message that i got if i check "Attach fike uloads to email" L

      There was a problem sending an email to '[email protected]' from Workflow for Form 'Form test' with id '910f6d62-f344-47fc-ae94-fdd31508ac24' for Record with unique id '7114907a-0414-414e-812d-bced4dc15b18'
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType)
       at System.Net.Mail.Attachment..ctor(String fileName)
       at Umbraco.Forms.Core.Providers.WorkflowTypes.SendEmail.Execute(Record record, RecordEventArgs e)
    

    If I try to access the image with this url http://mydomain.com\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png

    it works.

    I think that the issue is how Umbraco forms add the path for attached file, unfortunately I don't know how to fix this.

    florin

  • Mats Stam 66 posts 236 karma points
    Feb 22, 2017 @ 08:23
    Mats Stam
    0

    So I guess that D:\home\site\wwwroot\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png doesn't work then? Otherwise it wouldn't state so I guess...

    Looks like maybe you have one more directory under your wwwroot? Or is the site actually placed in the wwwroot folder?

    If that's the case I'd look for a path starting with "../" somewhere :)

  • Lazau Florin 74 posts 210 karma points
    Feb 22, 2017 @ 12:08
    Lazau Florin
    0

    Hi all,

    It seems that the issue is related to this http://issues.umbraco.org/issue/CON-1056#comment=67-31566

    Unfortunately, that package doesn't work :(

    Florin

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Feb 22, 2017 @ 13:31
    Alex Skrypnyk
    0

    Hi all,

    Lets vote for this issue.

  • Lazau Florin 74 posts 210 karma points
    Mar 10, 2017 @ 14:58
    Lazau Florin
    0

    Hi guys,

    Any updates here.?

    Thanks, Florin

  • Anders Ellersgaard 4 posts 24 karma points
    Mar 17, 2017 @ 13:42
    Anders Ellersgaard
    0

    I believe I'm experiencing the same issue on a Forms version 4.4.0 and Umbraco version 7.3.0 assembly: 1.0.5750.18157

    Hosted on Azure...

Please Sign in or register to post replies

Write your reply to:

Draft