<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 3/20/15 12:48 AM, Sebastien Audier
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAACGQv2TQ5YeqEGWYtsCm07rSf3Le4kt999TpSpeMChyuxE-Ow@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">2015-03-19 15:46 GMT-10:00 Bob Arning
            <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:arning315@comcast.net" target="_blank">arning315@comcast.net</a>&gt;</span>:<br>
            <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"> <font
                  face="Georgia">sounds like the sliced and non-sliced
                  versions are posting in somewhat different ways.<br>
                </font></div>
            </blockquote>
            <div><br>
            </div>
            <div>Yes, sounds like the sliced version is posting in
              different format. And may be, Zinc doesn't handle
              correctly.</div>
          </div>
        </div>
      </div>
    </blockquote>
    So, how do you POST in the non-sliced version?<br>
    <blockquote
cite="mid:CAACGQv2TQ5YeqEGWYtsCm07rSf3Le4kt999TpSpeMChyuxE-Ow@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <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"><font face="Georgia">
                  <br>
                  does the sample code below work ok if the data is less
                  than BYTES_PER_CHUNK? IOW, is the code ok for a single
                  chunk POST, but failing for multiple chunks? </font></div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Not only multiple chunks. Even if the file is smaller
              than the BYTES_PER_CHUNK limit, it doesn't work.  It
              doesn't work with just one request. </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"> <font
                  face="Georgia"><br>
                </font></div>
            </blockquote>
            <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"><font face="Georgia">
                  What does the receiving code look like? Is it
                  different for the sliced and non-sliced versions?<br>
                  <br>
                </font></div>
            </blockquote>
            <div><br>
            </div>
            <div>No it's the same method.</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"><font face="Georgia">
                </font>Can you say more about what "return an error" is?
                Is there a debugger stack you could include?
                <div>
                  <div class="h5"><br>
                  </div>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>
              <div>Okay, this is my post method on the handler.<br>
                <br>
                test</div>
              <div><span class="" style="white-space:pre"> </span>&lt;post&gt;</div>
              <div><span class="" style="white-space:pre"> </span>&lt;produces:
                'application/json; charset=utf-8'&gt;</div>
              <div><span class="" style="white-space:pre"> </span>|
                uploadedFile disk file | </div>
              <div><span class="" style="white-space:pre"><br>
                </span></div>
              <div><span class="" style="white-space:pre"> </span>uploadedFile
                := self requestContext request postFields values first.</div>
              <div><br>
              </div>
              <div>        "here, uploadedFile is a WAFile if we don't
                slice the file"</div>
              <div><br>
              </div>
              <div><span class="" style="white-space:pre"> </span>[disk
                := (FileSystem disk workingDirectory / 'ressources' /
                'upload').</div>
              <div><span class="" style="white-space:pre"> </span>disk
                ensureDirectory. </div>
              <div><span class="" style="white-space:pre"> </span>file
                := ((disk /  (uploadedFile fileName)) ensureFile).</div>
              <div><span class="" style="white-space:pre"> </span>file
                writeStreamDo: [:str |</div>
              <div><span class="" style="white-space:pre"> </span>str</div>
              <div><span class="" style="white-space:pre"> </span>nextPutAll:
                (uploadedFile rawContents)]] fork.</div>
              <div><span class="" style="white-space:pre"> </span>^''</div>
            </div>
          </div>
          <br>
          <br>
          <br>
          when I slice the file, the self requestContext return a signal
          does not undestood.</div>
      </div>
    </blockquote>
    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's wrong with the POST.<br>
    <blockquote
cite="mid:CAACGQv2TQ5YeqEGWYtsCm07rSf3Le4kt999TpSpeMChyuxE-Ow@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Did you need more informations ?<br
            clear="all">
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Thanks again,</div>
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr">Sébastien AUDIER<br>
              <div><br>
                <a moz-do-not-send="true"
                  href="http://www.objectfusion.fr/" target="_blank"><br>
                </a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>