Title: RE: Image upload and TinyMCE

I got it to work using apache-lenya 1.2.4 in tomcat 5.0.28 and Linux.  That's the good news for me.
The bad news for me is that I can't find out where I went wrong.
(just to be complete: I also tried it using file names without any blanks in them)

Rudi

    _____________________________________________
    From:   MOSSELMANS Rudi (OPOCE) 
    Sent:   Wednesday, April 26, 2006 10:22 AM
    To:     '[email protected]'
    Subject:        Image upload and TinyMCE

    I am experiencing a problem when uploading images when using the TinyMCE editor integration: nothing happens.

    When I look at the HTTP traffic that is intercepted using 'Tamper Data' in my Firefox browser I notice that there is one POST with 'lenya.step=image-upload-show' and with the file that is to be uploaded attached as contents.  I would have expected to see 'lenya.step=image-upload' instead, followed by another request with 'lenya.step=image-upload-show'.  Funny thing is that the 'Referer' header contains the same URL as the URL of the POST request.

    Where is the lenya.step=image-upload?

    I am using apache-lenya 1.2.4 on tomcat 5.0.28 and Linux, but have experienced the same behaviour on apache-lenya 1.2.x with Jetty and Win2K.

    Here's the info copied from Tamper Data:

    9:14:07.521[1893ms][total 2203ms] Status: 200[OK]
    POST http://shrek:8080/lenya/default/authoring/newpage.html?&lenya.event=edit&lenya.usecase=tiny_mce&lenya.step=image-upload-show Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] Content Size[-1] Mime Type[text/html]

       Request Headers:
          Host[shrek:8080]
          User-Agent[Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2]
          Accept[text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5]
          Accept-Language[en,nl;q=0.7,nl-be;q=0.3]
          Accept-Encoding[gzip,deflate]
          Accept-Charset[UTF-8,*]
          Keep-Alive[300]
          Connection[keep-alive]
          Referer[http://shrek:8080/lenya/default/authoring/newpage.html?&lenya.event=edit&lenya.usecase=tiny_mce&lenya.step=image-upload-show]

          Cookie[[SNIP]]
       Post Data:
          POST_DATA[-----------------------------41184676334
    Content-Disposition: form-data; name="lenya.usecase"

    tiny_mce
    -----------------------------41184676334
    Content-Disposition: form-data; name="lenya.step"

    image-upload
    -----------------------------41184676334
    Content-Disposition: form-data; name="uploadtype"

    asset
    -----------------------------41184676334
    Content-Disposition: form-data; name="properties.asset.date"

    Wed Apr 26 09:13:49 CEST 2006
    -----------------------------41184676334
    Content-Disposition: form-data; name="properties.asset.data"; filename="Water lilies.jpg"
    Content-Type: image/jpeg

    [SNIP]

    Thanks in advance for any clues,

    Rudi


Reply via email to