diff --git a/javascript/UploadField.js b/javascript/UploadField.js
index <HASH>..<HASH> 100644
--- a/javascript/UploadField.js
+++ b/javascript/UploadField.js
@@ -102,10 +102,13 @@
 				this.fileupload($.extend(true, 
 					{
 						formData: function(form) {
-							
+							var idVal = $(form).find(':input[name=ID]').val();
+							if(!idVal) {
+								idVal = 0;
+							}
 							return [
 								{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()},
-								{name: 'ID', value: $(form).find(':input[name=ID]').val()}
+								{name: 'ID', value: idVal}
 							];
 						},
 						errorMessages: {
BUGFIX: UploadField does not work on DataObjects