<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><span class=""><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br>
          </div>
        </div>
      </div>
    </blockquote></span>
    So, how do you POST in the non-sliced version?<span class=""><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
            </div>
            <div><br></div></div></div></div></blockquote></span></div></blockquote><div>Just like it:</div><div><pre style="white-space:pre-wrap;font-family:&#39;Source Code Pro&#39;,monospace;font-size:15px;word-wrap:break-word;color:white;padding:1em;line-height:1.3;border-radius:2px;margin-bottom:2em;background-color:rgb(68,68,68)"><span style="color:rgb(226,137,100)">function</span> upload(files) {
  <span style="color:rgb(226,137,100)">var</span> formData = <span style="color:rgb(226,137,100)">new</span> <b><span style="color:rgb(137,189,255)">FormData</span></b>();

  <span style="color:rgb(226,137,100)">for</span> (<span style="color:rgb(226,137,100)">var</span> i = <span style="color:rgb(51,135,204)">0</span>, file; file = files[i]; ++i) {
    <b>formData.append(<a href="http://files.name">files.name</a>, file);</b>
  }

  <span style="color:rgb(226,137,100)">var</span> xhr = <span style="color:rgb(226,137,100)">new</span> <span style="color:rgb(137,189,255)">XMLHttpRequest</span>();
  xhr.open(<span style="color:rgb(101,176,66)">&#39;POST&#39;</span>, &#39;/myPath&#39;, <span style="color:rgb(226,137,100)">true</span>);
  xhr.onload = <span style="color:rgb(226,137,100)">function</span>(e) {  };

  xhr.send(<b>formData</b>);  <span style="color:rgb(174,174,174);font-style:italic">// multipart/form-data</span>
}</pre></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><span class=""><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div>
          <br>
          when I slice the file, the self requestContext return a signal
          does not undestood.</div>
      </div>
    </blockquote></span>
    If there us a SqueakDebug.log (or similar), that would tell us
    exactly what was not understood and by whom. Which might help us in
    determining what&#39;s wrong with the POST.<br>
    <blockquote type="cite"><span class="">
      <div dir="ltr">
        <div class="gmail_extra"></div></div></span></blockquote></div></blockquote><div><br></div><div><br></div><div>Okay, I am at the office and I don&#39;t have access to my pharo, but when I could reproduce this log, I will send it to you. </div><div> </div><div><br></div><div>Thanks</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr">Sébastien AUDIER<br><div><br>
<a href="http://www.objectfusion.fr/" target="_blank"><br></a></div></div></div>
</div></div>