<?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 Re: Custom input form + method=post + upload files = not able to use SAS authentication? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101612#M3716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that did not fix the issue.&amp;nbsp; I have a ticket open with SAS.&amp;nbsp; I was able to code a work around by splitting it into two stored processes, but that's an necessary step, so I'm hopeful that SAS can resolve my ticket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 17:58:09 GMT</pubDate>
    <dc:creator>BenB</dc:creator>
    <dc:date>2013-04-18T17:58:09Z</dc:date>
    <item>
      <title>Custom input form + method=post + upload files = not able to use SAS authentication?</title>
      <link>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101610#M3714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on a custom input for that feeds my stored process and recently I added the ability to upload a file.&amp;nbsp; As a result, my previous approach that used the _username and _password parameters seems to be broken.&amp;nbsp; &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003259930.htm" title="http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003259930.htm"&gt;http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003259930.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a brief history of what I have done and where I am stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(I can post more code, but hopefully someone can see what I am missing with these snippets)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version 1 - custom input form that sends parameters through the URL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FORM name="form" id="form" METHOD="GET" ACTION="&amp;amp;_URL"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="usernm" NAME="_username" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="pass" NAME="_password" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but since some of my text boxes are large, I'd prefer not to use GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version 2 - custom input form that sends parameters via POST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FORM name="form" id="form" METHOD="POST" ACTION="&amp;amp;_URL"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="usernm" NAME="_username" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="pass" NAME="_password" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but recently I was asked to add the ability to upload files.&amp;nbsp; As a result, I needed to change the form enctype value.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003254547.htm" title="http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003254547.htm"&gt;http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003254547.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version 3 - custom input form that sends parameters and files via POST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FORM name="form" id="form" METHOD="POST" ACTION="&amp;amp;_URL" &lt;SPAN style="color: #ff0000;"&gt;enctype="multipart/form-data"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="usernm" NAME="_username" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" id="pass" NAME="_password" VALUE=""&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT type="file" id="myfile" NAME="myfile"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing this, the form submit takes me to the SAS Logon Manager, which I am trying to avoid by using _username and _password.&amp;nbsp; My password is encoded (I have&lt;/P&gt;&lt;P&gt;AllowEncodedPassword is set to &lt;SPAN class="strongMono"&gt;true&lt;/SPAN&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what's going on with POST when the enctype is "multipart/form-data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 20:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101610#M3714</guid>
      <dc:creator>BenB</dc:creator>
      <dc:date>2013-04-08T20:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom input form + method=post + upload files = not able to use SAS authentication?</title>
      <link>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101611#M3715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using Basic Aunthication (/do1) with Version 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince DelGobbo&lt;/P&gt;&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 17:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101611#M3715</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2013-04-18T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom input form + method=post + upload files = not able to use SAS authentication?</title>
      <link>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101612#M3716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that did not fix the issue.&amp;nbsp; I have a ticket open with SAS.&amp;nbsp; I was able to code a work around by splitting it into two stored processes, but that's an necessary step, so I'm hopeful that SAS can resolve my ticket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 17:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Custom-input-form-method-post-upload-files-not-able-to-use-SAS/m-p/101612#M3716</guid>
      <dc:creator>BenB</dc:creator>
      <dc:date>2013-04-18T17:58:09Z</dc:date>
    </item>
  </channel>
</rss>

