title: Urlfetch blobs multipart/m
body: <p>I am trying to use UlrFetch to submit CSV data to Zoho reports. I am using the following code:</p>
  
  <pre><code>function doImport(tabla,file) {
    var url="https://reportsapi.zoho.com/api/xxxxxxxx/yyyyyyyyyyy/"+tabla;
    var ticket="zzzzzzzzzzzzzzzz" ;//getTicket();
    url=url + "?ZOHO_ACTION=IMPORT&amp;ZOHO_OUTPUT_FORMAT=XML&amp;ZOHO_ERROR_FORMAT=json&amp;ZOHO_API_VERSION=1.0"
    var params={"ZOHO_API_KEY":"vvvvvvvvvvvvvvvvvvvvvv"
                ,"ticket":ticket
                ,"ZOHO_FILE":file
                ,"ZOHO_IMPORT_TYPE":"APPEND"
                ,"ZOHO_ON_IMPORT_ERROR":"ABORT"
                ,"ZOHO_AUTO_IDENTIFY":"true"
                ,"ZOHO_CREATE_TABLE":"false"
                ,"ZOHO_DATE_FORMAT":"dd-MM-YYYY"
                ,"ZOHO_DELIMITER":"0"
               };
  
    var options =
      {
        "method" : "post",
        "payload" : params,
        "contentType": "multipart/form-data"
      };
    var response=UrlFetchApp.fetch(url, options);
    var tableDataString=response.getContentText();
    expireTicket(ticket);
    Logger.log(tableDataString);
    return tableDataString;
  }
  </code></pre>
  
  <p>However, the data is not submitted in correct multiform format (getting error 500 status). This issue backtracks to <a href="http://productforums.google.com/forum/#!searchin/apps-script/urlfetch%2420multipart/apps-script/qpJCDYtaSDQ/e4gqaaaq-AMJ" rel="nofollow">early 2011</a>. Please, one or two examples of how to submit blob files in multipart/form-data format would be welcome.</p>
  
  <p>Thanks</p>