<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 2/25/11 8:47 AM, Balz Schreier wrote:
    <blockquote
      cite="mid:AANLkTi==VN6G1RwZZLKS9ob3Sp8vBTPHQU5fz4f9mv-Q@mail.gmail.com"
      type="cite">Thank you all, for giving prompt answers.
      <div>The reason why it does not work in my case is the following:</div>
      <div><br>
      </div>
      <div>- getEnvironment().getRequest() does NOT RETURN the original
        request!! You get an HttpRequest object (which is a Yanel
        class).</div>
      <div><br>
      </div>
      <div>If the incoming request is a multipart POST, yanel already
        parses it and takes out the payload from the request! This is
        why my code did not find any content anymore.</div>
      <div><br>
      </div>
      <div>So from my perspective it is not ok the way
        how getEnvironment().getRequest() is implemented. The return
        value should be HttpRequest instead of HttpSerlvetRequest, then
        it would be directly clear that this is not the original object
        anymore... I spent 3 hours now to find out this issue.</div>
    </blockquote>
    <br>
    I don't remember what was the reason for this implementation. Need
    to have a look at it again.<br>
    <blockquote
      cite="mid:AANLkTi==VN6G1RwZZLKS9ob3Sp8vBTPHQU5fz4f9mv-Q@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>QUESTION:</div>
      <div>- there is a hardcoded limit of 64000 for an upload. I guess
        this is 64MB? Because we successfully upload images of 12MB.
        Shouldn't this value be configurable in Yanel?</div>
    </blockquote>
    <br>
    sure, also see<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://wyona.com/pipermail/yanel-development/2009-April/003455.html">http://wyona.com/pipermail/yanel-development/2009-April/003455.html</a><br>
    <a class="moz-txt-link-freetext" href="http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6982">http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6982</a><br>
    <br>
    As as start I think we should make it at least configurable within
    conf/yanel.xml, whereas we might<br>
    rather want to make it configurable within WEB-INF/web.xml because
    it its web app think and not really<br>
    anything to do with Yanel itself.<br>
    <br>
    WDYT?<br>
    <br>
    Thanks<br>
    <br>
    Michael<br>
    <blockquote
      cite="mid:AANLkTi==VN6G1RwZZLKS9ob3Sp8vBTPHQU5fz4f9mv-Q@mail.gmail.com"
      type="cite">
      <div>
        <br>
      </div>
      <div>Cheers and thanks for the hints!</div>
      <div><br>
      </div>
      <div>Balz.</div>
      <div><br>
        <br>
        <div class="gmail_quote">On Thu, Feb 24, 2011 at 11:24 PM, simon
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:simon@333.ch">simon@333.ch</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Am 24.02.2011 21:30, schrieb <a
              moz-do-not-send="true" href="mailto:baszero@gmail.com"
              target="_blank">baszero@gmail.com</a>:
            <div class="im">
              <br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                Yes , enctype is set, yanel logs are fine. Have to debug
                tomorrow, don't understand it ...<br>
              </blockquote>
            </div>
            not sure but maybe this could help you:<br>
            <br>
            <a moz-do-not-send="true"
href="http://trac.yanel-contribution.3k3.org/browser/resource-types/imageGallery/src/java/com/litwan/yanel/impl/resources/imagegallery/ImageGalleryCUDResource.java"
              target="_blank">http://trac.yanel-contribution.3k3.org/browser/resource-types/imageGallery/src/java/com/litwan/yanel/impl/resources/imagegallery/ImageGalleryCUDResource.java</a><br>
            see line 305<br>
            <br>
            HTH<br>
            <font color="#888888">
              simon</font>
            <div>
              <div class="h5"><br>
                <br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  <br>
                  _____________________<br>
                  CTO<br>
                  <a moz-do-not-send="true"
                    href="http://www.zwischengas.com" target="_blank">www.zwischengas.com</a><br>
                  <br>
                  Sent from my iPhone<br>
                  My latest Fotos:<br>
                  <a moz-do-not-send="true"
                    href="http://tinyurl.com/lm2010pics" target="_blank">http://tinyurl.com/lm2010pics</a><br>
                  <br>
                  On 24.02.2011, at 21:09, Michael Wechner<<a
                    moz-do-not-send="true"
                    href="mailto:michael.wechner@wyona.com"
                    target="_blank">michael.wechner@wyona.com</a>>
                   wrote:<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    Hi Balz<br>
                    <br>
                    On 2/24/11 7:06 PM, Balz Schreier wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      Hi,<br>
                      <br>
                      does anybody already have implemented a file
                      upload feature in a resource?<br>
                    </blockquote>
                    See for example the "from scratch realm" File menu
                    in order to upload an asset:<br>
                    <br>
                    <a moz-do-not-send="true"
href="http://127.0.0.1:8080/yanel/from-scratch-realm/en/create-new-page.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Afile&referer=http%3A%2F%2F127.0.0.1%3A8080%2Fyanel%2Ffrom-scratch-realm%2Fen%2Findex.html%3Fyanel.toolbar%3Don&Next=Next"
                      target="_blank">http://127.0.0.1:8080/yanel/from-scratch-realm/en/create-new-page.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Afile&referer=http%3A%2F%2F127.0.0.1%3A8080%2Fyanel%2Ffrom-scratch-realm%2Fen%2Findex.html%3Fyanel.toolbar%3Don&Next=Next</a><br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      I am using this library:<br>
                      <a moz-do-not-send="true"
                        href="http://commons.apache.org/fileupload/streaming.html"
                        target="_blank">http://commons.apache.org/fileupload/streaming.html</a><br>
                      <br>
                      as it is already available in Yanel.<br>
                      <br>
                      But when I use the API, it does not find any
                      items.<br>
                      In the network traffic I see that my form gets
                      submitted correctly, with all the form fields
                      including the JPG.<br>
                    </blockquote>
                    are you sure you have set<br>
                    <br>
                    <form  enctype="multipart/form-data"<br>
                    <br>
                    ?<br>
                    <br>
                    What do the Yanel log files say?<br>
                    <br>
                    HTH<br>
                    <br>
                    Michael<br>
                    <br>
                    <br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      Thanks<br>
                      Cheers<br>
                      balz<br>
                    </blockquote>
                    -- <br>
                    Yanel-development mailing list <a
                      moz-do-not-send="true"
                      href="mailto:Yanel-development@wyona.com"
                      target="_blank">Yanel-development@wyona.com</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development"
                      target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br>
                  </blockquote>
                </blockquote>
                <br>
                -- <br>
                Yanel-development mailing list <a
                  moz-do-not-send="true"
                  href="mailto:Yanel-development@wyona.com"
                  target="_blank">Yanel-development@wyona.com</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development"
                  target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>