You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "MOSSELMANS Rudi (OPOCE)" <Ru...@cec.eu.int> on 2006/05/12 09:27:30 UTC
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: 'user@lenya.apache.org'
>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
>
>
Re: Image upload and TinyMCE
Posted by Markus Angst <ma...@inventec.ch>.
Hello,
Any new insights about this? Every hint would be welcome.
Thanks!
Markus Angst, Inventec Informatik AG, Zurich
> 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: * 'user@lenya.apache.org'
> *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_
> <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
> <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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org