Hi,
Thanks for the solution to the REQUEST...
The File Upload Applet has a parameter for SESSION ID, what is Zope expecting... Usually the browser takes care of this, there's an id, a token, etc.
Do I send the whole object back through the applet parameter, or a piece, or do I need to flatten or process the object.
-Jon Cyr cyrj@cyr.info
PS- I've found a better File Upload Applet called JUpload, at http://www.jupload.biz... nice work, multiple upload batch lists through a Applet interface, drap & drop, lots of parameters. I'll be using it for Photos. The only problem is parsing for the filename, got that working last night.
* Jonathan Cyr cyrj@cyr.info [2004-07-03 23:25]:
Hi,
Thanks for the solution to the REQUEST...
The File Upload Applet has a parameter for SESSION ID, what is Zope expecting... Usually the browser takes care of this, there's an id, a token, etc.
Do I send the whole object back through the applet parameter, or a piece, or do I need to flatten or process the object.
What applet parameter and what object? I've never worked with the file upload applet you're talking about, so I don't know what you are asking.
The applet is called JUpload, available at http://www.JUpload.biz.
It emulates a HTTP File Upload exactly, it doesn't have any special server-side code. It uses the HTTP Authentication of your web server. In the <embed> tag there are parameters that you pass by the pages HTML, one of them is to continue a session id, so your webserver which sees the applet as a different web client than the browser wants to authenticate. You can pass the session identifier to the Applet for inclusion in the Applets Upload. I've seen the REQUEST.SESSION object in displaying REQUEST. It's a compound object, with several strings.... since Zope manages this usually, I don't know what to pass to the applet. The applet seems to need a simple string.
Right now, for testing, I've given the applet target a Proxy Role to make it work... obviously this isn't the way to go permanently.
-Jon
Roché Compaan wrote:
- Jonathan Cyr cyrj@cyr.info [2004-07-03 23:25]:
Hi,
Thanks for the solution to the REQUEST...
The File Upload Applet has a parameter for SESSION ID, what is Zope expecting... Usually the browser takes care of this, there's an id, a token, etc.
Do I send the whole object back through the applet parameter, or a piece, or do I need to flatten or process the object.
What applet parameter and what object? I've never worked with the file upload applet you're talking about, so I don't know what you are asking.
* Jonathan Cyr cyrj@cyr.info [2004-07-04 20:26]:
The applet is called JUpload, available at http://www.JUpload.biz.
It emulates a HTTP File Upload exactly, it doesn't have any special server-side code. It uses the HTTP Authentication of your web server. In the <embed> tag there are parameters that you pass by the pages HTML, one of them is to continue a session id, so your webserver which sees the applet as a different web client than the browser wants to authenticate. You can pass the session identifier to the Applet for inclusion in the Applets Upload. I've seen the REQUEST.SESSION object in displaying REQUEST. It's a compound object, with several strings.... since Zope manages this usually, I don't know what to pass to the applet. The applet seems to need a simple string.
REQUEST['_ZopeId']
'_ZopeId' is dished out by the browser id manager.