<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to attach documents using dojox.fom.Uploader in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/how-to-attach-documents-using-dojox-fom-uploader/m-p/79015#M92</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to upload documents associated to a feature using the uploader from "dojox.form.Uploader".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To understand how the uploader works I recommend to take a look to this sample and using it as a template as I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="http://jsfiddle.net/joshuaboshi/38B55/"&gt;http://jsfiddle.net/joshuaboshi/38B55/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the form "UnloadFile.php" &amp;nbsp;I am using an aspx form, for that I just created a new aspx form :&lt;/P&gt;&lt;P&gt;"UploadFile.aspx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the javascript code inside Widget.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.form = domConstruct.create('formUpload', {&lt;BR /&gt; method: 'post',&lt;BR /&gt; enctype: 'multipart/form-data',&lt;BR /&gt; class: 'Uploader'&lt;/P&gt;&lt;P&gt;}, this.editPopup.domNode.children[0].children[1].children[0].children[0].children[2]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this.up = new Uploader({&lt;BR /&gt; label: 'Browse',&lt;BR /&gt; multiple: true,&lt;BR /&gt; url: "UploadFile.aspx?PROJECTID=" &lt;BR /&gt; }).placeAt(this.form);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.up.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.txtBox = new dijit.form.TextBox({&lt;BR /&gt; name: "PROJECTID",&lt;BR /&gt; value: "" /* no or empty value! */,&lt;BR /&gt; placeHolder: "PROJECTID"&lt;BR /&gt; },"PROJECTID").placeAt(this.form,'last');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.txtBox.set("value", "hello");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this.btn = new Button({&lt;BR /&gt; label: 'Upload',&lt;BR /&gt; onClick: lang.hitch(this,function() {&lt;BR /&gt; var concatenateURL = "".concat("UploadFile.aspx?PROJECTID=" , this.globalPROJECTID);&lt;BR /&gt; this.up.set("url", concatenateURL); &lt;BR /&gt; this.up.upload( );&lt;BR /&gt;})&lt;BR /&gt; }).placeAt(this.form);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 17:37:35 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2017-02-21T17:37:35Z</dc:date>
    <item>
      <title>How to attach documents using dojox.fom.Uploader</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/how-to-attach-documents-using-dojox-fom-uploader/m-p/79015#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to upload documents associated to a feature using the uploader from "dojox.form.Uploader".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To understand how the uploader works I recommend to take a look to this sample and using it as a template as I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="http://jsfiddle.net/joshuaboshi/38B55/"&gt;http://jsfiddle.net/joshuaboshi/38B55/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the form "UnloadFile.php" &amp;nbsp;I am using an aspx form, for that I just created a new aspx form :&lt;/P&gt;&lt;P&gt;"UploadFile.aspx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the javascript code inside Widget.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.form = domConstruct.create('formUpload', {&lt;BR /&gt; method: 'post',&lt;BR /&gt; enctype: 'multipart/form-data',&lt;BR /&gt; class: 'Uploader'&lt;/P&gt;&lt;P&gt;}, this.editPopup.domNode.children[0].children[1].children[0].children[0].children[2]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this.up = new Uploader({&lt;BR /&gt; label: 'Browse',&lt;BR /&gt; multiple: true,&lt;BR /&gt; url: "UploadFile.aspx?PROJECTID=" &lt;BR /&gt; }).placeAt(this.form);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.up.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.txtBox = new dijit.form.TextBox({&lt;BR /&gt; name: "PROJECTID",&lt;BR /&gt; value: "" /* no or empty value! */,&lt;BR /&gt; placeHolder: "PROJECTID"&lt;BR /&gt; },"PROJECTID").placeAt(this.form,'last');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.txtBox.set("value", "hello");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this.btn = new Button({&lt;BR /&gt; label: 'Upload',&lt;BR /&gt; onClick: lang.hitch(this,function() {&lt;BR /&gt; var concatenateURL = "".concat("UploadFile.aspx?PROJECTID=" , this.globalPROJECTID);&lt;BR /&gt; this.up.set("url", concatenateURL); &lt;BR /&gt; this.up.upload( );&lt;BR /&gt;})&lt;BR /&gt; }).placeAt(this.form);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/how-to-attach-documents-using-dojox-fom-uploader/m-p/79015#M92</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-02-21T17:37:35Z</dc:date>
    </item>
  </channel>
</rss>

