title: Worklight 6.2 FileUploadOptions is not defined
body: <p>I'm working with Worklight 6.2 and I'm trying to upload an image from the camera on an Android Device with android 4.0.3, but whenever I run this code it won't complete the upload.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>function sendReportImage(reportID){
      WL.Logger.debug("Submitting report image: " + imageURI);
  
  var options = new FileUploadOptions();
  
  options.fileKey="file"; 
  options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
  options.mimeType="image/jpeg";
  options.chunkedMode=false;
  
  WL.Logger.debug("options" + options);
  
  var ft = new FileTransfer();
  ft.upload(imageURI, encodeURI(host + "/reports/"+reportID+"/contents"), imageUploadSuccess, imageUploadFail, options);
  </code></pre>
  
  <p>But it doesn't even get to the FileTransfer line, it stops on the FileUploadOptions, showing this log:</p>
  
  <pre><code>07-21 19:34:43.835: D/CordovaLog(6185):          file:///data/data/com.my_program/files/www/default/worklight/cordova.js: Line 1036 : processMessage failed: Message: S01 StoragePlugin137844502 n1
  07-21 19:34:43.835: I/Web Console(6185): processMessage failed: Message: S01 StoragePlugin137844502 n1 at file:///data/data/com.my_program/files/www/default/worklight/cordova.js:1036
  07-21 19:34:43.867: D/CordovaLog(6185): file:///data/data/com.my_program/files/www/default/worklight/cordova.js: Line 1037 : processMessage failed: Error: ReferenceError: FileUploadOptions is not defined
  07-21 19:34:43.867: I/Web Console(6185): processMessage failed: Error: ReferenceError: FileUploadOptions is not defined at file:///data/data/com.my_program/files/www/default/worklight/cordova.js:1037
  07-21 19:34:43.898: D/dalvikvm(6185): GC_CONCURRENT freed 147K, 48% free 7679K/14535K, paused 2ms+3ms
  07-21 19:34:43.898: D/CordovaLog(6185): file:///data/data/com.my_program/files/www/default/worklight/cordova.js: Line 1038 : processMessage failed: Stack: ReferenceError: FileUploadOptions is not defined
  07-21 19:34:43.898: D/CordovaLog(6185):     at sendReportImage (file:///data/data/com.my_program/files/www/default/js/report.js:206:2)
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/js/report.js:181:5)
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1202:33)
  07-21 19:34:43.898: D/CordovaLog(6185):     at file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1047:30
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.resolveWith (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1158:7)
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.resolve (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1247:33)
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/jsonstore.js:4007:28)
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1202:33)
  07-21 19:34:43.898: D/CordovaLog(6185):     at file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1047:30
  07-21 19:34:43.898: D/CordovaLog(6185):     at Object.resolveWith (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1158:7)
  07-21 19:34:43.898: I/Web Console(6185): processMessage failed: Stack: ReferenceError: FileUploadOptions is not defined
  07-21 19:34:43.898: I/Web Console(6185):     at sendReportImage (file:///data/data/com.my_program/files/www/default/js/report.js:206:2)
  07-21 19:34:43.898: I/Web Console(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/js/report.js:181:5)
  07-21 19:34:43.898: I/Web Console(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1202:33)
  07-21 19:34:43.898: I/Web Console(6185):     at file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1047:30
  07-21 19:34:43.898: I/Web Console(6185):     at Object.resolveWith (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1158:7)
  07-21 19:34:43.898: I/Web Console(6185):     at Object.resolve (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1247:33)
  07-21 19:34:43.898: I/Web Console(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/jsonstore.js:4007:28)
  07-21 19:34:43.898: I/Web Console(6185):     at Object.&lt;anonymous&gt; (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1202:33)
  07-21 19:34:43.898: I/Web Console(6185):     at file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1047:30
  07-21 19:34:43.898: I/Web Console(6185):     at Object.resolveWith (file:///data/data/com.my_program/files/www/default/worklight/wljq.js:1158:7) at file:///data/data/com.my_program/files/www/default/worklight/cordova.js:1038
  </code></pre>
  
  <p>Any hint how to fix it?</p>