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.
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 ?
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!
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 ?
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
is working on a reply...