You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Rossel <ol...@anyware-tech.com> on 2002/02/20 11:21:11 UTC
Uploading files and managing their path.
I want to use the add-employee.xsp+process-employee.xsp system.
But what I want to add is a photo of the employee.
SO I add in the form a field that is of type="file".
The file is correctly uploaded into the upload-dir.
But in the process-employee.xsp, the POSTed data
corresponding to the image is the absolute path of the file uploaded
(in my case, /opt/TOMCAT/webapps/cocoon/upload/foobar.jpg).
Can you give me a piece of advice about how to manage this path in order to
create a HTML tag <img src="upload/foobar.jpg"/>
What's the point of giving the absolute path? To be able to make any
kind of
Java processing on it?
In my case, should I make my <img> tag by appending the "value of the
upload-dir"+"name of the file" ?
Is there a standard way of doing that?
(I presume there is a problem of coherence between the sitemap and the
URL of the <img>,
that's why a manual processing is mandatory in any case).
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>