title: Need assistance with unfamiliar syntax, error - e is undefined - Google Apps Script(GAS)
body: <p>I'm using a script exactly like the one on the tutorial here, <a href="https://developers.google.com/apps-script/reference/ui/file-upload" rel="nofollow">https://developers.google.com/apps-script/reference/ui/file-upload</a></p>
  
  <p>However, despite using the syntax I keep getting e is undefined in the statement:</p>
  
  <pre><code>var fileBlob = e.parameter.dsrFile;
  </code></pre>
  
  <p>I think that means my function doPost(e) is probably wrong somehow. Here is my entire script below.</p>
  
  <pre><code>// Create Menu to Locate .CSV
  function doGet(e) {
    var app = UiApp.createApplication().setTitle("Upload CSV");
    var formContent = app.createVerticalPanel();
    formContent.add(app.createFileUpload().setName("dsrFile"));
    formContent.add(app.createSubmitButton("Start Upload"));
    var form = app.createFormPanel();
    form.add(formContent);
    app.add(form);
    return app;
  
  }
  
  // Upload .CSV file
  function doPost(e)
  {
     // data returned is a blob for FileUpload widget
     var fileBlob = e.parameter.dsrFile;
     var doc = DocsList.createFile(fileBlob);
   }
  </code></pre>