At 07:44 AM 4/4/2003, you wrote:
Sorry for the late answer.
I have been OOTO this week.
Olivier GUCKERT wrote:
Now, i can use protected webdav directory to serve files with Cocoon :
thanks Guido.
What i want to do yet et upload files with Cocoon to this protected
webdav directory
Geoff Howard wrote:
At 07:44 AM 4/4/2003, you wrote:
Sorry for the late answer.
I have been OOTO this week.
Olivier GUCKERT wrote:
Now, i can use protected webdav directory to serve files with
Cocoon : thanks Guido.
What i want to do yet et upload files with Cocoon to this protected
Hello,
I want my users to be able to upload pdf files in a WebDav directory,
protected by login password (just cocoon 'know' this password.
I try to use upload.xsp but dont know how to configure web.xml to
provide this access.
Does somebody know or show me a way ?
Thanks
Olivier
It's not clear below: do you want to use cocoon's upload facility, or
webdav?
Geoff
At 03:54 AM 4/2/2003, you wrote:
Hello,
I want my users to be able to upload pdf files in a WebDav directory,
protected by login password (just cocoon 'know' this password.
I try to use upload.xsp but dont know
Geoff Howard a écrit :
It's not clear below: do you want to use cocoon's upload facility, or
webdav?
Geoff
yes y do. I want to upload a file (IE with upload.xsp) but not on my HD,
on a webdav directory.
Do you know how to do
I'm sorry - I must need more coffee. It's still not clear to me. Here's
my best guess:
You want to upload to upload.xsp, but select a file not from your hard drive
but from a local shortcut to a webdav directory?
I don't think windows/IE will let you do that. In my experience with
webdav
The end user produce a pdf file and use cocoon (via upload.xsp) to
publish it :
upload.xsp provides the end user to select a pdf file and upload it to
the server. I just want the server to store this file not on the server
HD, but in a webdav directory on an other server. I don't know how
stream to a webdav repository on another
server from within an action.
Geoff Howard
At 09:24 AM 4/2/2003, you wrote:
The end user produce a pdf file and use cocoon (via upload.xsp) to
publish it :
upload.xsp provides the end user to select a pdf file and upload it to
the server. I just want the server
Ok, thanks a lot, i will have a look at cocoon wiki !
Geoff Howard a écrit :
I see. The server itself has access to a webdav folder on a third
machine. As
far as I know, there will not be a way to automatically handle this because
cocoon's uploads are using java.io.File to automatically
Now, i can use protected webdav directory to serve files with Cocoon :
thanks Guido.
What i want to do yet et upload files with Cocoon to this protected
webdav directory. Is it a simple way to do this ?
Thanks
Olivier
Ok, I'm starting to get it... Let me see if this is right.
I found the FileUploadWithAction page on the CocoonWiki, so
I just configure cocoon to save the uploaded files, then write an action
to call POI to generate XML from that saved XSL file... sound good?
David
Hello Guys,
How do u know the uploaded file name using Cocoon file
upload mechanism? I only see that uploaded url is
upload : and can see the upload file directory. Any
suggestions?
Thanks in advance.
Best regards, Shakil
__
Do you Yahoo!?
Yahoo
http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=uploadq=b
-Original Message-
From: Siraj Shakil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 9:50 AM
To: [EMAIL PROTECTED]
Subject: Cocoon file upload
Hello Guys,
How do u know the uploaded file name
Hello
I want to use the upload.xsp, but i need to configure different
upload-dir.
I see that there is a parameter in web.xml :
param-nameupload-directory/param-name
param-value/WEB-INF/work/upload-dir/param-value
but there's no reference to this parameter in the upload.xsp
Does
upload xsp does reference the setting:
File uploadDir = null;
/** Contextualize this class */
public void contextualize(Context context) throws ContextException {
uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
}
When cocoon starts up, it places the value of the upload
Sir,
Cocoon places the uploaded file into a default directory. The default
directory is C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\upload-dir.
I use a Cocoon action to pick up the uploaded file from the default
directory and place it where ever i want
Hi all
I am planning to design a user interface where the user upload documents
say pdf, word, excel. I will also capture some information like author
name, description entered by the user which then get saved in Xindice.
I want to do the upload and the save on click of a button. Any idea
Hello,
after cocoon-2.0.4 upgrade the following check inside my self-implemented
UploadGenerator (transfers an uploaded multipart file to a backend server, receives an
XML response from the backend server and transforms it into HTML) does not become true
any more:
if
Yes, maybe. Check to make sure that the new upload settings in web.xml (new
in 2.0.4) are set to allow uploads. There are several init-params (such as
autosave-uploads), and down later in web.xml there is a configuration for
the request factory implementation. The comments in web.xml should
Thanks Geoff,
indeed it was the autosave-uploads param I had to set to true.
-Ursprüngliche Nachricht-
Von: Geoff Howard [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 10. Dezember 2002 18:15
An: [EMAIL PROTECTED]
Betreff: RE: cocoon-2.0.4 problem with multipart file upload
Yes, maybe
Dear colleagues,
does anybody know how I can do a file upload using the html input
type=file ../ tag?
Do you have an example pipeline?
What shall I do with the result?
Where can I get the content of the selected file from?
Thank you, best regards
- Volker
On Friday 08 November 2002 10:15, Volker Schneider wrote:
does anybody know how I can do a file upload using the html input
type=file ../ tag?
This might help:
http://outerthought.net/wiki/Wiki.jsp?page=FileUploadWithAction
-Bertrand
.
Of course, your pipeline answers the match for handling the form.
And guess what, the file is sitting on my server at c:\program files\apache
group\tomcat 4.1\work\standalone\localhost\cocoon\cocoon-files\upload-dir.
IT'S A BEAUTIFUL THING.
But, ya know, it is just like i tell the folks that i work
On Friday 08 November 2002 13:40, Ray Martin wrote:
. . .
But, ya know, it is just like i tell the folks that i work with - You may
have done the greatest things, but unless you can tell others (written)
about what you have done - you have done nothing.
. . .
Sure - we're all aware of the
]
To: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 1:40 PM
Subject: RE: File upload with Cocoon
Sir,
Someone pointed out to me that Cocoon handles file uploading for you. I
was
rather skeptical - but, i just tried it and it works.
On client machine, i used a browser and my form with an
enctype
Also see the file upload example at:
/samples/xsp/upload and look at the javadocs for
org.apache.cocoon.components.request.multipart.FilePartFile
which can give you a reference to the File stored on
disk (automatically by default) or an InputStream to
read the contents and do something with them
--- Oskar Casquero [EMAIL PROTECTED] wrote:
And what can I do to disable cocoon's automatic file
uploading? I want to
send files to cocoon but not to save them in disk
you configure it in web.xml:
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103676501932187w=2
And another question about
Hi all !
I've got a little problem with cocoon upload...
My project has to unzip a file once it's been uploaded, this is done with an
xsp page.
My problem is the file doesn't exist (nearly each time I upload a file) when
the code is executed ! (the file.exists() java method returns false)
I
Nobody can help me ?
- Original Message -
From: Ganael LAPLANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 9:58 AM
Subject: Upload troubles
Hi all !
I've got a little problem with cocoon upload...
My project has to unzip a file once it's been
If your doing a file upload, then cocoon catches those uploads and put
them into the file-upload directory specified by the cocoon.xconf.
This is a big irritant for me. As I now have to go to a central location
and perform file management. Basically, when the file is uploaded,
cocoon saves
Hi all !
I've got a little problem with cocoon upload...
My project has to unzip a file once it's been uploaded, this is done with an
xsp page.
My problem is the file doesn't exist (nearly each time I upload a file) when
the code is executed !
The file.exists() java method returns false...
I
Niket Anand wrote:
Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want
Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want to save it with new name
: upload file-overwrite permission(Waiting for reply...)
Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with
1_image.gif
name(it saves with new file name by appending 1_
Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want to save it with new name
Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want to save it with new name
Title: Nachricht
Sascha,
Could you post the mod plz ?
- Original Message -
From:
Sascha Kulawik
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 8:38
PM
Subject: RE: Upload problem :( Windows
related (again...)
I
know that problem and have
Hi !
I'm trying to upload files tothe
cocoonupload directory (on a LINUX machine)...
It works...
BUT, It works correctly if I upload a file from a
UNIX machine... The file is stored
with its "small" file name (not with the whole
path, which is OK). If I upload a file
from a zind
]Subject: Upload problem
:( Windows related (again...)
Hi !
I'm trying to upload files tothe
cocoonupload directory (on a LINUX machine)...
It works...
BUT, It works correctly if I upload a file from a
UNIX machine... The file is stored
with its "small"
Hi Cocooners,
Having read through the mailing list on 'upload'
issue, I know that many people want to override the
default upload behaviour. And Vadim, if I remember
correctly, suggested have a look at the
org.apache.cocoon.components.multipart package.
So last night I was going through
Ok, I found out it is the CocoonServlet that does the
upload behind the scene. Now I am to write an upload
action extending AbstractAction, I just find out the
Request object is not compatible to the default
HttpServletRequest object. does anyone know how am I
able to get HttpServletRequest
Hello,
I can get the uplodaded_file inside an Action fine, but can I get the
upload-diretory web.xml parameter?
The upload.xsp file gives me an example, but apparently the Context object
it uses is not the same Context one gets by using
ObjectModelHelper.getContext(objectModel).
Thanks
From: Amir Rosen [mailto:[EMAIL PROTECTED]]
Hi,
Is there a (simple) way to override the default cocoon behavior when
uploading
a file ?
Is there a role I should implement and configure ?
See //components/request/RequestFactory, and request-factory servlet
init parameter in web.xml
Hi,
Is there a (simple) way to override the default cocoon behavior when uploading a file ?
Is there a role I should implement and configure ?
Thanks,
Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
-
Please
hi,
i can't find where to change my upload directory. i tried it in tomcat and
also in cocoon2, but couldn#t find it. would be nice, to give me a hint,
where to change it.
thanks
-
Please check that your question has
Hi Philipp,
look at the web.xml file in cocoons WEB-INF directory. There you find a
parameter upload-directory.
Hope this helps,
Gerhard
Philipp Bößem wrote:
hi,
i can't find where to change my upload directory. i tried it in tomcat and
also in cocoon2, but couldn#t find it. would be nice
thanks, it works.
-Ursprüngliche Nachricht-
Von: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 25. Juni 2002 08:53
An: [EMAIL PROTECTED]
Betreff: Re: upload directory
Hi Philipp,
look at the web.xml file in cocoons WEB-INF directory. There you find a
parameter
Hi,
I have a question about uploads. When cocoon receives any HTTP-post-request
with an upload-file (multipar/form-data), the file is uploaded in the
default-upload-dir even if the request causes a server-error (and no pipeline
is initiated). So it seems, that the upload is done by cocoon
You can't.
Nicola Ken suggested that the upload mechanism should be rewritten. I'm
willing to do
this (including some major speedups of the multipart parser) but i could use
some pointers how
to do this.
Jeroen
- Original Message -
From: Lutz Lenzen [EMAIL PROTECTED]
To: [EMAIL
Jeroen ter Voorde wrote:
Nicola Ken suggested that the upload mechanism should be rewritten. I'm
willing to do
this (including some major speedups of the multipart parser) but i could use
some pointers how
to do this.
Well, here are some small pointers:
1- check out the upload component
Subject: RE: Vadim : RE: XSP Upload example - I do not understand
Thanks a million
I understand it now...
Let me try to clarify
1. Upload directory is read from init parameter. Hence it is kinda fixed
.
2. We do not get the control of uploaded files.
As soon as the Cocoon gets
Jeroen ter Voorde wrote:
Hi,
You can use an action to move the attachment to where you want. Here's how:
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101878098524370w=2
Or fix the upload mechanism ;-)
Having to pass upload stuff conf to Cocoon directly is an ugly hack,
that nobody
Hi!
I still have problems with the file upload functionality. When I try to
get the parameter with the uploaded file, the parameter is of String
type and not of FilePartFile!
Here is an example code:
?xml version=1.0 encoding=UTF-8?
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp
Hello, everybody,
I do not understand the XSP upload example. Yes, it works fine, but I would
like to understand as much as possible. I guess their is some magic behind
the scene.
I did some reading of the API Javadoc, but I'am still not experienced enough
reading source code. What to do
Hello Vadim...
If you might explain the upload functionality ...
1. Form with multipart data is submitted to upload.xsp
2. The form parameters have to be processed. I changed the form variable
name from uploaded_file to files and still it works.
3. If I have to do additional processing like
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Hello Vadim...
If you might explain the upload functionality ...
1. Form with multipart data is submitted to upload.xsp
2. The form parameters have to be processed. I changed the form
variable
name from uploaded_file to files
Thanks a million
I understand it now...
Let me try to clarify
1. Upload directory is read from init parameter. Hence it is kinda fixed
.
2. We do not get the control of uploaded files.
As soon as the Cocoon gets a request. The request is processed
for Multipart request processing
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Thanks a million
I understand it now...
Let me try to clarify
1. Upload directory is read from init parameter. Hence it is kinda
fixed
.
2. We do not get the control of uploaded files.
As soon as the Cocoon gets
not the id used by your Servlet
container to generate and submit the SQL statements.
Has anyone successfully configured mysql to store binary data in blob
fields?
As soon as I try to upload e. g. an image I get an
_org.apache.cocoon.ProcessingException:
Could not add record
hello,
i'm doing a file upload using cocoon2.0.2-dev. it works fine (file will
get uploaded) but the sitemap receives no request parameters (even not
uploaded_file). when i try the upload sample with the cocoon dist it
works fine. can anybody help me ?
thanks
marc
This problem is fixed in the latest development versions (2.0.3 and 2.1).
Jeroen
- Original Message -
From: Marc Schüpbach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 07, 2002 2:26 PM
Subject: Upload
hello,
i'm doing a file upload using cocoon2.0.2-dev. it works fine
On 06.Jun.2002 -- 06:56 AM, Andrew Timberlake wrote:
Gerhard
I think that your problem is not mysql but the use of the
DatabaseAddAction.
Looking through the source for the DatabaseAddAction indicates no
awareness of Uploaded Files.
The error you are receiving below shows that cocoon is
Hi!
Has anyone successfully configured mysql to store binary data in blob
fields?
As soon as I try to upload e. g. an image I get an
_org.apache.cocoon.ProcessingException:
Could not add record: java.io.FileNotFoundException:
org.apache.cocoon.components.request.multipart.FilePartFile@2bfa91
in the request.getAttribute in the code above.
I hope this helps a little.
Andrew
On Thu, 2002-06-06 at 01:31, Gerhard Hipfinger wrote:
Hi!
Has anyone successfully configured mysql to store binary data in blob
fields?
As soon as I try to upload e. g. an image I get
Hello All,
How can I upload a file from browser to server using cocoon.
I am using the following syntax...
form name = test ENCTYPE=multipart/form-data
please let me know how to include this tag on cocoon side to accept file
type data
from
anurag
Anurag
In Cocoon's default state it should already handle the uploads
transparently for you.
Cocoon has two RequestWrappers which handle all uploads and save the
files to a location which by default is (Assuming Tomcat)
tomcat dir/Work/Standalone/localhost/cocoon/cocoon-files/upload-dir
You can
Set 'upload-directory' in web.xml.
Use:
form name = test enctype=multipart/form-data action=upload
method=POST
where upload is its self
-Oorspronkelijk bericht-
Van: manish [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 4 juni 2002 11:08
Aan: [EMAIL PROTECTED]
Onderwerp: How
Manish
-Original Message-
From: manish [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2002 10:08
To: [EMAIL PROTECTED]
Subject: How to upload a file???
Hello All,
How can I upload a file from browser to server using cocoon.
I am using the following syntax...
form name = test
Anurag
In Cocoon's default state it should already handle the uploads
transparently for you.
Cocoon has two RequestWrappers which handle all uploads and save the
files to a location which by default is (Assuming Tomcat)
tomcat dir/Work/Standalone/localhost/cocoon/cocoon-files/upload-dir
You can
Hello?
Has anyone accomplished to upload files from html forms
to the server to a specific directory ..
Yes, I did, with an action. What is the problem?
Can you please explain how you did that?
Or may be provide us the code, if it is not copyrighted
Olivier Rossel wrote:
Hello?
Has anyone accomplished to upload files from html forms
to the server to a specific directory ..
Yes, I did, with an action. What is the problem?
Can you please explain how you did that?
Or may be provide us the code
anyone accomplished to upload
files from html forms
to the server to a specific directory ..
Yes, I did, with an action. What is the problem?
Can you please explain how you did that?
Or may be provide us the code, if it is not
copyrighted
Hello Andre,
Thanks for the input
I do not need to process the Data ..
Let me re-iterate the problem..
User is presented with a HTML form to upload a data file (XML or not).
The user then browses for the file on his m/c (client) and presses the
submit button..
Now this file has
Hello
Has anyone accomplished
to upload files from html forms to the server to a specific directory
..
Regds,
Chiths
Chitharanjan Das wrote:
Hello?
Has anyone accomplished to upload files from html forms to
the server to a specific directory ..
Yes, I did, with an action. What is the problem?
--
Andre H. Juffer | Phone: +358-8-553 1683
The Biocenter and| Fax
Hi all.
I'm developing apps using Apache, Tomcat 4.0.1, Cocoon 2.0.1 on a Windows
2000 o.s.
I'd like to upload file in different directories
using jsp pages.
Can I set the upload dir dynamically in the jsp
page and not in the web.xml file for all the cocoon instance?
If I can do it, I can
request.getParameter(name);
}
}
Tuesday, March 26, 2002, 5:57:38 PM, you wrote:
AK Hi!
AK How can I turn off the automatic upload of files sent by an
AK input type=file ?
AK I dont know if Tomcat or Cocoon saves all the files to
AK %TOMCAT_HOME%\work\localhost\cocoon\cocoon-files\upload-dir
Hello!
I have a serious problem with file-uploads. I need to check if the file
already exists in the specified directory and if yes, create a new
subdirectory and store it there. And I need to delete files in the upload
directory.
I examined the xsp-upload-sample, but I still don't have a clue
Hi!
How can I turn off the automatic upload of files
sent by an
input type="file" ?
I dont know if Tomcat or Cocoon saves all the files
to
%TOMCAT_HOME%\work\localhost\cocoon\cocoon-files\upload-dir
I think Cocoon does this, but why?
Thanks,
Alex.
You can change the upload direcrory in the web.xml
of cocoon
- Original Message -
From:
Alexander Kruth
To: [EMAIL PROTECTED]
Sent: Tuesday, March 26, 2002 2:57
PM
Subject: Automatic upload
Hi!
How can I turn off the automatic upload of files
sent
Yes, Iknow, but I don't know how to turn off
this feature!
Alex.
- Original Message -
From:
Markus
Blank
To: [EMAIL PROTECTED]
Sent: Tuesday, March 26, 2002 3:07
PM
Subject: Re: Automatic upload
You can change the upload direcrory in the
web.xml
Hi, all
How can I turn off automatical uploading files by Cocoon
(2.0.x) in case when I use other engine for uploading?
--
Sergey G. Aslanov
CBOSS Group,
Web-technologies department
mailto:[EMAIL PROTECTED]
tel: +7 095 7555655
I've set the 'upload-max-size' to about 100K in C2's web.xml
but when I upload a file larger than that it get's submitted
anyway.
Is there a way to set mime-types for the upload?
Michael
-
Please check that your question has
i'm using cocoon 2.0.rc2
with tomcat and apache
how can i change the upload for the upload.xsp?
thanks
kounis stavros
osmosis.gr
-
Please check that your question has not already been answered in the
FAQ before posting
Cocoon User wrote:
i'm using cocoon 2.0.rc2
with tomcat and apache
how can i change the upload for the upload.xsp?
thanks
kounis stavros
osmosis.gr
the upload dir is defined in your WEB-INF/web.xml
The upload dir is unique to your cocoon instance
is it possible to upload something into a directory outside
cocoons installation?
for example into /tmp ore /home
thank
kounis stavros
On Thu, 7 Mar 2002, Olivier Rossel wrote:
Cocoon User wrote:
i'm using cocoon 2.0.rc2
with tomcat and apache
how can i change the upload
I have an XML database, not related to Cocoon, that performs inserts,
updates, or deletes by POSTing and XML document to a virtual URL. With
Cocoon I need to have an HTML form collect info. I need to create a
small, well-formed XML string (or document) and then POST it to the
database via http
Seems I have to describe the problem once again:
Uploading a file with the cocoon2 upload-example seems to work ok. The
uploaded file appears in the file-list. But when you look closer, you
notice, that uploaded file is empty (only containing some information
about the original file type
Hi,
within your web.xml file you can change the
upload directory. It is passed as a parameter
to the Servlet. If you can even set absolute paths
i don't know.
HTH
Max
Here a snipet from my web.xml
servlet
servlet-nameCocoon2/servlet-name
Does anybody has a working exemple of a file upload with cocoon2 using
com.oreilly.servlet.MultipartRequest?
I'm getting
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
upload_xsp:
Line 288, column 31: Class
Hi !
I tried to upload file with cocoon example upload.xsp.
When i post request i got file with 1 byte length in upload directory.
Cocoon logs reports right size for request ... (C2rc1a, tomcat 4.0, w2k)
May be someone can guess problem and help ?
Thank you in advance,
Vladimir
C2 comes with an example that shows how to build a page that allows users
to upload a file.
%TOMCAT_HOME\webapps\cocoon\docs\samples\xsp\upload.xsp
It places the file to a location based upon: Constants.CONTEXT_UPLOAD_DIR
which for win32:tomcat 4.0 is at:
%TOMCAT_HOME%\work\localhost\cocoon
Hi,
does anyone knows where to find more documentation about
the upload feature of Cocoon2? I am want especially to know
is if somethere information is stored about what name the
uploaded document has get and if it is possible to identify
from which, request the documnet came??
best regards
93 matches
Mail list logo