Copied to clipboard

Flag this post as spam?

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


  • Mreid 7 posts 27 karma points
    Sep 23, 2010 @ 23:49
    Mreid
    0

    Doc2Form empty upload field error

    Hi,

    I've started using the Doc2Form package and it's fantastic! I have a simple enquiry form that needs to include the possibility of adding an attachment and then sending that via email to my site admin. I have this working by using the upload datatype. However, I run into a problem when the user chooses not to upload a file. The upload field needs to be optional for my purposes. The error I get is as follows:

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.editorControls.uploadField.Save() +4904

    I am using Umbraco 4.5.2 and version 3.0 of Doc2Form. So, just to be clear... everything works perfectly if the user adds an attachment. The problem only occurs if the user doesn't upload a file.

    Any help is much appreciated!

  • Ambert van Unen 54 posts 96 karma points
    Apr 27, 2011 @ 15:23
    Ambert van Unen
    0

    I'm having the same issue, Doc2form isn't checking if the file upload field is empty or not... Don't think they'll be updating it... Anyone knows how to try/catch it maybe ?

  • Mreid 7 posts 27 karma points
    Apr 28, 2011 @ 18:08
    Mreid
    0

    Hi,

    unfortunately this seems to be a duplicate post from when i first posted the topic. See here for the solution i used:

    http://our.umbraco.org/forum/core/general/12983-Doc2Form-empty-upload-field-error?p=0#comment51113

    cheers

Please Sign in or register to post replies

Write your reply to:

Draft