RE: [External] Re: Zip file upload corruption on Linux

2021-05-26 Thread Scott,Tim
Hi Chris, > Mine is coming up on 20 years old. That's worthy of an extra slice of cake :-). > The code you posted shows imports and then your interaction with the > fileupload library. Do you know what else happens before this line of code? > ServletRequestContext requestContext = new

Re: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Christopher Schultz
Tim, On 5/25/21 11:22, Scott,Tim wrote: Hi Chris, "nah, nobody still uses Struts 1.x". I wouldn't put it past this 14 year old application ... :) Mine is coming up on 20 years old. But at this point, if you have things working, you can probably stop. > My OCD says No!, but my

RE: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Scott,Tim
Hi Chris, > "nah, nobody still uses Struts 1.x". I wouldn't put it past this 14 year old application ... > But at this point, if you have things working, you can probably stop. My OCD says No!, but my pragmatic side says "leave it until I have to change" > But something is *definitely*

Re: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Christopher Schultz
Tim, On 5/25/21 05:03, Scott,Tim wrote: Hi Mark, No. You should be able to use HttpServletRequest.getPart() I've given up on that attempt as I keep getting: java.lang.AbstractMethodError: Method

RE: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Scott,Tim
Hi Mark, > No. You should be able to use HttpServletRequest.getPart() I've given up on that attempt as I keep getting: java.lang.AbstractMethodError: Method org/apache/struts/upload/MultipartRequestWrapper.getPart(Ljava/lang/String;)Ljavax/servlet/http/Part; is abstract I have my workaround

Re: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Mark Thomas
FileUpload so this issue needs to be raised with the Apache Commons project. Alternatively, in Tomcat 9 file upload support is available via the Servlet API. You could try switching to that (and any bugs would then be a Tomcat issue). I replaced "org.apache.commons.fileu

RE: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
issue needs to be raised with the Apache Commons project. > Alternatively, in Tomcat 9 file upload support is available via the Servlet API. You could try switching to that (and any bugs would then be a Tomcat issue). I replaced "org.apache.commons.fileupload." with "org.apac

Re: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Mark Thomas
org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.fileupload.servlet.ServletRequestContext; You are using Commons FileUpload so this issue needs to be raised with the Apache Commons project. Alternatively, in Tomcat 9 file upload support is available via the Servlet API. You could try

RE: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
Hi Mark, Thanks for the prompt response. >On 24/05/2021 10:58, Scott,Tim wrote: >> Hi experts, >> >> First time poster, here, so I know I'm risking not providing nearly >> enough of the right information. Please let me know what I can send to >> help you help me further through this. >How are

Re: Zip file upload corruption on Linux

2021-05-24 Thread Mark Thomas
On 24/05/2021 10:58, Scott,Tim wrote: Hi experts, First time poster, here, so I know I’m risking not providing nearly enough of the right information. Please let me know what I can send to help you help me further through this. How are you reading the uploaded file? Please provide the code

Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
Hi experts, First time poster, here, so I know I'm risking not providing nearly enough of the right information. Please let me know what I can send to help you help me further through this. I'm using separate deployments of Tomcat 9 on Linux (RedHat 7) and Windows for the same mature .war

Re: Limiting multipart file upload sizes

2020-04-27 Thread Christopher Schultz
an necessary. > >>> Once I got Struts out of the way, I was able to determine that >>> every multipart part was being written to the disk, >>> temporarily, even the one-byte request parameters and stuff >>> like that. Yuck, and oops. > >>> That

Re: Limiting multipart file upload sizes

2020-04-27 Thread Christopher Schultz
y, I was able to determine that >> every multipart part was being written to the disk, temporarily, >> even the one-byte request parameters and stuff like that. Yuck, >> and oops. > >> That was happening because I had set no >> and so it defaulted to 0 bytes. > >

Re: Limiting multipart file upload sizes

2020-04-27 Thread Christopher Schultz
defaulted to 0 bytes. > > Setting a to something reasonable (I chose > 1024 bytes) ended up immediately having Tomcat reject my > known-too-large requests with HTTP 413 "Payload Too Large". > > So this is good: Tomcat is indeed complaining about the size of > the request.

Re: Limiting multipart file upload sizes

2020-04-27 Thread Christopher Schultz
out the size of the request. However, it didn't do it until I set a non-zero . This is my current configuration in web.xml: 1048576 1049600 1024 With the removed, Tomcat will happily process a 30MiB file upload, which I didn't expect. I'm going to try to recreate this w

Re: Limiting multipart file upload sizes

2020-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 3/30/20 16:51, Mark Thomas wrote: > On 30/03/2020 21:45, Christopher Schultz wrote: >> All, >> >> In my application under Tomcat 8.5.51, I have configured a >> servlet to allow multipart/form-data submissions and I have added >> this

Re: Limiting multipart file upload sizes

2020-03-30 Thread Mark Thomas
On 30/03/2020 21:45, Christopher Schultz wrote: > All, > > In my application under Tomcat 8.5.51, I have configured a servlet to > allow multipart/form-data submissions and I have added this > configuration as a part of the config: > > > 1048576 > 1049600 > > > Without

Limiting multipart file upload sizes

2020-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, In my application under Tomcat 8.5.51, I have configured a servlet to allow multipart/form-data submissions and I have added this configuration as a part of the config: 1048576 1049600 Without the section, the upload

Re: Async file upload server has 33% less throughput compared to the sync version

2019-12-04 Thread Mark Thomas
the original method. i.e. more server side work to achieve exactly the same result. For an asynchronous file upload servlet to provide improved throughput: 1. It needs to use non-blocking I/O. Your doesn't. 2. The clients need to be sending data sufficiently slowly that a thread readin

Re: Async file upload server has 33% less throughput compared to the sync version

2019-12-03 Thread Behrang Saeedzadeh
02:17, Behrang Saeedzadeh wrote: > > > > > Any ideas what am I missing here? > > Async provides scalability, not raw performance. > > You haven't written a async file upload servlet. That would require > non-blocking I/O and look more like this: > > https

Re: Async file upload server has 33% less throughput compared to the sync version

2019-12-01 Thread Mark Thomas
On 01/12/2019 02:17, Behrang Saeedzadeh wrote: > Any ideas what am I missing here? Async provides scalability, not raw performance. You haven't written a async file upload servlet. That would require non-blocking I/O and look more like this: https://github.com/apache/tomcat/blob/mas

Async file upload server has 33% less throughput compared to the sync version

2019-11-30 Thread Behrang Saeedzadeh
Source code with Gatling tests here (WIP): https://github.com/turingg/file-server I wanted to compare the performance/throughput of an async file upload servlet to a sync version. To do that, I intentionally configured Tomcat to: * Use at most 2 HTTP connector threads * Accept up to 1000

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-04 Thread Umesh Sehgal
to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused by: java.net.SocketException: Connection reset by peer: socket write error

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-04 Thread Umesh Sehgal
. On Mon, Mar 2, 2015 at 2:32 PM, Rainer Jung rainer.j...@kippdata.de wrote: Am 02.03.2015 um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-04 Thread Umesh Sehgal
. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused by: java.net.SocketException: Connection reset by peer: socket write error

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-03 Thread Umesh Sehgal
, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-03 Thread Rainer Jung
um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Rainer Jung
Am 02.03.2015 um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Rainer Jung
on tomcat to help debug? Please do not top post. For the rest see below. On Mon, Mar 2, 2015 at 2:32 PM, Rainer Jung rainer.j...@kippdata.de wrote: Am 02.03.2015 um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Umesh Sehgal
rainer.j...@kippdata.de wrote: Am 02.03.2015 um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Umesh Sehgal
post. For the rest see below. On Mon, Mar 2, 2015 at 2:32 PM, Rainer Jung rainer.j...@kippdata.de wrote: Am 02.03.2015 um 09:34 schrieb Umesh Sehgal: Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have

Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Umesh Sehgal
Hi, We recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused by: java.net.SocketException

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Umesh Sehgal
to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused by: java.net.SocketException: Connection reset by peer: socket write error

Re: Fwd: File upload fails after upgrade to 7.0.59

2015-03-02 Thread Rainer Jung
recently upgraded our application's tomcat from 7.0.30 to 7.0.59. After upgrade the file upload feature has broken. I have been able to nail it down to the point that the problem manifests 7.0.50 onwards. Here is the exception that I see inside logs: Caused by: java.net.SocketException

Re: Does maxPostSize has an effect on file upload?

2012-12-18 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/12/2012 19:11, Christopher Schultz wrote: Nick, On 12/14/12 4:28 PM, Williams, Nick wrote: If it was using the global Content-length header, it would count not only the encoded data bytes, but also the parts separators, headers etc..

Re: Does maxPostSize has an effect on file upload?

2012-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 12/14/12 4:28 PM, Williams, Nick wrote: If it was using the global Content-length header, it would count not only the encoded data bytes, but also the parts separators, headers etc.. So that's nice. It counts only the net data

Re: [OT] Does maxPostSize has an effect on file upload?

2012-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 12/14/12 5:36 PM, Williams, Nick wrote: The way Tomcat is apparently doing it now is much more sensible, in my humble opinion, because it does allow a direct and easy comparison with the files being uploaded. And since as per above it

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Kai Weber
* Mark Thomas ma...@apache.org: Does a file upload as multipart/form-data not count to the size of the POST? No, as the doc make clear. I asked because I could not find a hint in the docs or the INTERNET. What doc do you mean? I looked into http://tomcat.apache.org/tomcat-6.0-doc/config

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Christopher Schultz
for example). I use commons-fileupload to read the file. As expected. Does a file upload as multipart/form-data not count to the size of the POST? No, as the doc make clear. I'm not so sure the docs make it clear. Here's what that attribute currently says (in its entirety): The maximum size

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Does maxPostSize has an effect on file upload? Does a file upload as multipart/form-data not count to the size of the POST? No, as the doc make clear. I'm not so sure the docs make it clear. I think you

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 12/14/12 12:38 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Does maxPostSize has an effect on file upload? Does a file upload as multipart/form-data not count

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 12/14/12 12:38 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Does maxPostSize has an effect on file upload? Does a file upload as multipart/form

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
the part contents or file contents if this is a file upload) to an aggregate post size variable. If at any point the aggregate post size exceeds the maxPostSize variable, it fails. Why the Content-Length is not checked, I am unsure. It seems it would be less expensive to throw the exception before

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
over the parts and placing them into the list of parts for the request. As it processes each part, it adds the size (in bytes) of that part (including the part contents or file contents if this is a file upload) to an aggregate post size variable. If at any point the aggregate post size exceeds

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Mark Thomas
getParameters(), getParts() etc. then Tomcat will apply the maxPostSize limit. If the application is responsible for reading the request body then the limit does not apply. Hence if an application uses a third-party file upload library or just calls getInputStream() or getReader() the limit will not apply

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
, Mark. Nick -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, December 14, 2012 3:17 PM To: Tomcat Users List Subject: Re: Does maxPostSize has an effect on file upload? On 14/12/2012 19:58, Williams, Nick wrote: (Note: It's entirely possible that I'm reading

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
If it was using the global Content-length header, it would count not only the encoded data bytes, but also the parts separators, headers etc.. So that's nice. It counts only the net data bytes, which is easier to compare to the size on disk of a file that you would upload. Indeed. A great

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Mark Thomas
On 14/12/2012 21:13, André Warnier wrote: snip/ If it's multipart/form-data, it delegates to another method, parseParts(). snip/ Why the Content-Length is not checked, I am unsure. It seems it would be less expensive to throw the exception before ever trying to parse the parts. However,

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
Mark Thomas wrote: On 14/12/2012 21:13, André Warnier wrote: snip/ If it's multipart/form-data, it delegates to another method, parseParts(). snip/ Why the Content-Length is not checked, I am unsure. It seems it would be less expensive to throw the exception before ever trying to parse

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
The way Tomcat is apparently doing it now is much more sensible, in my humble opinion, because it does allow a direct and easy comparison with the files being uploaded. And since as per above it needs to be kept in some cases anyway, my vote - if I had one - would be to not change it. I

Does maxPostSize has an effect on file upload?

2012-12-13 Thread Kai Weber
I see the following behaviour on Tomcat 6.0.24: The maxPostSize is not set, so uses the default of 2MB. I can upload files bigger than 2MB (5MB for example). I use commons-fileupload to read the file. Does a file upload as multipart/form-data not count to the size of the POST

Re: Does maxPostSize has an effect on file upload?

2012-12-13 Thread Mark Thomas
Kai Weber kai.we...@glorybox.de wrote: I see the following behaviour on Tomcat 6.0.24: The maxPostSize is not set, so uses the default of 2MB. I can upload files bigger than 2MB (5MB for example). I use commons-fileupload to read the file. As expected. Does a file upload as multipart/form

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-06 Thread Ole Ersoy
Hi Andre, I'm looking for something like this: pfu.setProgressListener(new FileUploadProgressListener()); Described in this article: http://www.ibm.com/developerworks/web/library/wa-aj-dwr/?ca=dgr-lnxw06AjaxDWR I could just go back to commons file upload, but thought I'd look around to see

Re: Servlet 3.0 File Upload

2011-09-06 Thread Ole Ersoy
Thanks guys! Ole On 09/03/2011 10:51 AM, Konstantin Preißer wrote: Hi, -Original Message- From: Jonathan Soons [mailto:jso...@juilliard.edu] Sent: Saturday, September 03, 2011 2:24 PM To: Ole Ersoy; Tomcat Users List Subject: RE: Servlet 3.0 File Upload You need to add a line

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ole, On 9/6/2011 11:03 AM, Ole Ersoy wrote: Described in this article: http://www.ibm.com/developerworks/web/library/wa-aj-dwr/?ca=dgr-lnxw06AjaxDWR I could just go back to commons file upload, but thought I'd look around to see if anything

Re: Servlet 3.0 File Upload

2011-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 9/3/2011 11:51 AM, Konstantin Preißer wrote: What I usually do to get the filename is: Part uploadPart = request.getPart(uploadfield); // get the Part String contDispoHeader = uploadPart.getHeader(Content-Disposition); // get

Re: Servlet 3.0 File Upload

2011-09-06 Thread verlag.preis...@t-online.de
Hi Chris, It seems dangerous to allow the client to specify the file name. All kinds of bad things can happen such as specifying special file names (does PRN still work in win32? through Java?) or overwriting files from other clients. I would highly recommend that some portion of the

Re: Servlet 3.0 File Upload

2011-09-05 Thread André Warnier
: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file upload servlet, with the exception that it calls the uploaded file samplefile instead of using the name of the file. So if I upload different

Re: Servlet 3.0 File Upload

2011-09-05 Thread Ole Ersoy
= req.getParameter(filename); Then instead of part.write(samplefile); do: part.write(filename); Jonathan Soons From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file

Re: Servlet 3.0 File Upload

2011-09-05 Thread Ole Ersoy
= req.getParameter(filename); Then instead of part.write(samplefile); do: part.write(filename); Jonathan Soons From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-05 Thread André Warnier
Ole Ersoy wrote: Hi, Anyone know whether it's possible to monitor progress of a file upload? What do you mean by monitoring ? Is it a question of providing the user with some feedback, like a progress bar ? If so, then one of the easier ways would be to write your own java applet

RE: Servlet 3.0 File Upload

2011-09-03 Thread Jonathan Soons
From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file upload servlet, with the exception that it calls the uploaded file samplefile instead of using the name

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, -Original Message- From: Jonathan Soons [mailto:jso...@juilliard.edu] Sent: Saturday, September 03, 2011 2:24 PM To: Ole Ersoy; Tomcat Users List Subject: RE: Servlet 3.0 File Upload You need to add a line in in your form: input type=text name=filename / Then in your

Re: Servlet 3.0 File Upload

2011-09-03 Thread chris derham
You need to add a line in in your form: input type=text name=filename / Then in your servlet GetPost() method you put this filename in a variable: String filename; filename = req.getParameter(filename); Then instead of part.write(samplefile); do: part.write(filename);

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, -Original Message- From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Sent: Saturday, September 03, 2011 6:51 PM To: Tomcat Users List Subject: Re: Servlet 3.0 File Upload Letting the remote user control the name of the file that is written

[Servlet 3.0] Monitoring File Upload Progress

2011-09-03 Thread Ole Ersoy
Hi, Anyone know whether it's possible to monitor progress of a file upload? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Servlet 3.0 File Upload

2011-09-02 Thread Ole Ersoy
Hi, I have a working file upload servlet, with the exception that it calls the uploaded file samplefile instead of using the name of the file. So if I upload different files, they all overwrite each other. Any ideas on how to fix this? I used this tutorial to get it working: http

Re: Servlet 3.0 File Upload

2011-09-02 Thread Ole Ersoy
Never mind...I see the example hard codes the name of the file. Sorry for the noise. On 09/02/2011 05:50 PM, Ole Ersoy wrote: Hi, I have a working file upload servlet, with the exception that it calls the uploaded file samplefile instead of using the name of the file. So if I upload

Setting max file upload size

2010-12-29 Thread Anjib Mulepati
I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib

Re: Setting max file upload size

2010-12-29 Thread Ronald Klop
: I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib

Re: Setting max file upload size

2010-12-29 Thread André Warnier
...@hotmail.com: I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib

Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Using Tomcat 6.0.18 (to be 6.0.26) and Google App Engine, for parallel development (different db tech) Short form: I need to accept a file upload in a servlet, do some computations on the upload, and then transition to a JSP with some data resulting from the computations. I'm having some

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
On 19/04/2010 17:06, Ken Bowen wrote: Using Tomcat 6.0.18 (to be 6.0.26) and Google App Engine, for parallel development (different db tech) Short form: I need to accept a file upload in a servlet, do some computations on the upload, and then transition to a JSP with some data resulting

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file name=csvfile2uploadbr/br input type=submit name=Submit value=Upload CSV File onclick=uploadCSVFile

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
=uploadCSVFile();return false; /form Looks good, except for that uploadCSVFile javascript trigger. Why not just do a regular file upload? Is this some kinda AJAX thing? The CSVFileUpload servlet doPost method uses org.apache.commons.fileupload.servlet.ServletFileUpload; to accept and process

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file name

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
You sure about that? I've got mine that way (button of type submit, but with an onClick event triggering a javascript function.) and it works fine. André Warnier wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
My guess is that he may have other various pieces of validation tied to it, client side. And he might even have some client-side validation intertwined for the type of file in an array, - i.e. .xls, .doc., .txt etc. as an acceptable file type to upload, though, like you, I have no idea not

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Just aritfacts of step by step changes (as I come to understand various thingies): should be type button, but gives no evidence of two events. On Apr 19, 2010, at 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name

FollowUP: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Thanks for all the responses. 1. After posting the original, I thought about it all at lunch, and was leaning towards the db solution, and Chris firmly pushed me over on that. Now I just convert the byte stream to a (sometimes big) string, and stuff it in a temporary db place using the

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
=uploadCSVFile();return false; /form Looks good, except for that uploadCSVFile javascript trigger. Why not just do a regular file upload? Is this some kinda AJAX thing? The CSVFileUpload servlet doPost method uses org.apache.commons.fileupload.servlet.ServletFileUpload; to accept and process

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
name=Submit value=Upload CSV File onclick=uploadCSVFile();return false; /form Looks good, except for that uploadCSVFile javascript trigger. Why not just do a regular file upload? Is this some kinda AJAX thing? The CSVFileUpload servlet doPost method uses

Re: FollowUP: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 4/19/2010 6:43 PM, Ken Bowen wrote: Thanks for all the responses. 1. After posting the original, I thought about it all at lunch, and was leaning towards the db solution, and Chris firmly pushed me over on that. Now I just convert the

RE: File upload fails

2009-01-09 Thread Peter Crowther
From: Alan Chaney [mailto:a...@compulsivecreative.com] I assume that as you are using MSIE then your dev. system is a PC? I develop on linux and don't know of any particular network monitor to recommend. Wireshark again - http://www.wireshark.org/download.html has Windows downloads. Lovely

File upload fails

2009-01-08 Thread javacle
, or on the server, without being noticed. Any advice would be appreciated tomcat 5.5, jre 1.4.2, Red Hat Enterprise Linux ES release 4 (Nahant) Kernel 2.6.9-5.ELsmp on an i686 -- View this message in context: http://www.nabble.com/File-upload-fails-tp21360958p21360958.html Sent from the Tomcat - User

Re: File upload fails

2009-01-08 Thread Alan Chaney
How big is the file? Connection reset is commonly caused by the the client dropping the connection. This could be because of connectivity problems - for example, issues with the clients ISP. I have had problems with specific browsers over this as well (our site has dozens of large mpeg and

Re: File upload fails

2009-01-08 Thread javacle
) Kernel 2.6.9-5.ELsmp on an i686 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/File

Re: File upload fails

2009-01-08 Thread Alan Chaney
javacle wrote: The file is about 30Mbytes .. I get the same error uploading from the office on the same LAN as the server. Ok - not likely to be a problem with the remote connection, then. What do you see in your browser when the upload fails? Have you got any browser debugging - if you

Re: file upload

2008-09-08 Thread Juha Laiho
Silvio Rainoldi wrote: When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/

file upload

2008-09-05 Thread Silvio Rainoldi
When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/ flyers/upload_1ed3f2d1_11c313f7288__8000_.tmp (Permission

Help with authentication and file upload

2008-07-02 Thread dexter
Hello, I have two problems using Tomcat while developing a jsp web application, I've been trying to solve them for quite some time but I wasn't able to do so... The first problem is about Tomcat's automatic authentication mechanism. I need to authenticate users that are stored on an HSQL

RequestDispatcher, wrapper, and file upload - ANSWER

2008-03-08 Thread John O'Hanley
Found the answer to my question. The call to request.getRequestDispathcher(String aPath) works as it should. However, this method represents a kind of 'back door', through which query params may be added. Since my wrappER doesn't override this method, it does a call forward to the 'wrappEE'.

RequestDispatcher, wrapper, and file upload

2008-03-07 Thread John O'Hanley
Hello, I have a nagging problem with a wrapper-filter for file upload requests. The core of the problem is that request.getRequestDispatcher(String aPath) is not behaving as expected. I am passing *query params* in 'aPath'. When I use a file upload wrapper on the request, these query params

RequestDispatcher, wrapper, and file upload

2008-03-07 Thread John O'Hanley
[Resending - attachments not accepted.] Hello, I have a nagging problem with a wrapper-filter for file upload requests. The core of the problem is that request.getRequestDispatcher(String aPath) is not behaving as expected. I am passing *query params* in 'aPath'. When I use a file upload

file upload servlet

2008-02-27 Thread Kimberly Begley
Hi - I'm trying to compile come java code to upload a file but am getting errors - it looks like it can't find the javax.servlet stuff to import and from what I've read online everyone talks about having the directory in the classpath but I have also read not to mess with my classpath - I'm trying

Re: file upload servlet

2008-02-27 Thread Bob Hall
--- 10:07PM Wed 27 Feb 2008 Kimberly Begley [EMAIL PROTECTED] wrote: Hi - I'm trying to compile come java code to upload a file but am getting errors - it looks like it can't find the javax.servlet stuff to import and from what I've read online everyone talks about having the directory in

Re: file upload servlet

2008-02-27 Thread Kimberly Begley
ah - ok - thanks for clearing that up. On Thu, Feb 28, 2008 at 4:59 PM, Bob Hall [EMAIL PROTECTED] wrote: --- 10:07PM Wed 27 Feb 2008 Kimberly Begley [EMAIL PROTECTED] wrote: Hi - I'm trying to compile come java code to upload a file but am getting errors - it looks like it can't find

Re: Rejecting a file upload

2008-01-15 Thread Volker Schoenefeld
Hello again, This is a follow up to my post you can see here [1]. I've tried a little more and found out something really scaring. By using chunked transfer encoding you can continously send data to _any_ tomcat servlet. Even if it would generate a 404 or another error. What I did was to

RE: Rejecting a file upload

2008-01-15 Thread Martin Gainty
Volkerwhat constitutes finished ? are you saying the connection is not closed? http://www.archivum.info/users@tomcat.apache.org/2007-05/msg02066.html ?Martin__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to

  1   2   >