You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nilesh N <ni...@yahoo.com> on 2003/07/07 12:20:39 UTC

Re: [users@httpd] Max file size for upload

Hi!

Again the same activity of File upload but different
error: 
Now, for the apache bridge problem, I changed the file
size check from 2MB to 20MB. 
When I was throwing exception for file Size > 2MB, I
was getting apache bridge failure error. To fix this,
I changed the minimum size as 20MB (thus simply
ignored the file size). 
So no more apache bridge failure error. However, this
time I got "page cannot be displayed error". 
I have a strong feeling that Somewhere , somehow , the
apache connection breaks and the redirection to the
desired jsp page is not happening. but why?

Environment : weblogic 4.5.1 
OS : Sun Solaris 
IE6.0
I am uploading file via jsp page .
Thanks a lot in advance.

Regards,
Nilesh.

--- Robert Andersson <ro...@profundis.nu> wrote:
> Nilesh N wrote:
> > When I try to upload a file with size > 2Mb, I get
> > error mentioned below. This is the error that
> appears
> > on the client .
> 
> Does all this appear at the client's? Hmm...
> 
> > On the server, we have put a validation that if
> file
> > size > 1 Mb, simply throw an exception : "file
> size
> > greater than 1 Mb" .
> 
> If this is an HTML form, you could have a hidden
> input file with the name
> "MAX_FILE_SIZE" which value is the maximum size in
> bytes of any file
> uploaded in the form. It is advisory to the client
> browser, and a good
> browser will warn or prohibit the user from
> submitting the form if a file is
> too big.
> 
> > But instead of showing the
> > exception on the jsp page , it shows me apache
> bridge
> > failure error. The server does show the exception
> > properly in the log. So everything behaves fine on
> the
> > server. But somehow the exception is not being
> shown
> > properly on the jsp page rather communicated to
> jsp
> > page and brige failure message appears.
> 
> I think this is because before you can validate the
> data, the request must
> be completed (ie. the whole file uploaded). And,
> semingly, the request times
> out. According to the docs, Apache will only time
> out if it takes too long
> between the TCP packets in a post request, and do
> not mention any time out
> on the overall request. So, I don't know what is
> causing it, but apparently
> your code doesn't have the chance to do anything in
> these cases. How long
> does it take to upload a 2 MB file? Have you tested
> it locally or on a
> high-speed connection?
> 
> 
> Regards,
> Robert Andersson
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 


=====
************************************************************
Nilesh N,
************************************************************
When the going gets tough, the tough gets going.
Average Woman prefers Beauty than Brains Bcoz Average Man Can See Better Than He Can Think.
Love deeply and passionately. You may get hurt, but that is the best way to live life.
************************************************************

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Max file size for upload

Posted by Nilesh N <ni...@yahoo.com>.
Yes, Weblogic has error log , but it does not show any
specific error when the page cannot be dispplayed
error is thrown to client.

I had put input type ="hidden" before the type ="file"
line. Could you please suggest how do I need to
revise? Some extra care needs to be taken?

I was able to upload the filesize of 12 mb, but on
choose of submit of form, got an error of page cannot
be displayed. so looks like I need to do something
more on top of simply including the max_file_size
line.

As regards apache log, It said (32)Broken pipe: client
stopped connection before rflush completed.

I guess, this message probably means broken link betn
weblogic and apache!

Thanks and Regards,
Nilesh.

--- Robert Andersson <ro...@profundis.nu> wrote:
> Nilesh N wrote:
> > 1. Yes, the back-engine is weblogic with which the
> > communicatoin fails , but dunno why.
> 
> Does weblogic not have an error log? Is it possible
> to set it in debug mode,
> so you can get detailed logs?
> 
> > 2. I tried and am using MAX_FILE_SIZE with hidden
> name
> > as below
> > <INPUT type="hidden" name="MAX_FILE_SIZE>"
> > value="10000000">
> 
> Well, how did that work? I hope the above isn't a
> cut-n-paste, because you
> need to revise it if that is so. Also, I forgot to
> mention, that input field
> must preceed the file field. The above is set to
> almost 10 MB, did you
> "succeed" (ie. the browser didn't complain) in
> uploading a bigger file than
> that?
> 
> Regards,
> Robert Andersson
> 
> 
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 


=====
************************************************************
Nilesh N,
************************************************************
When the going gets tough, the tough gets going.
Average Woman prefers Beauty than Brains Bcoz Average Man Can See Better Than He Can Think.
Love deeply and passionately. You may get hurt, but that is the best way to live life.
************************************************************

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Max file size for upload

Posted by Robert Andersson <ro...@profundis.nu>.
Nilesh N wrote:
> 1. Yes, the back-engine is weblogic with which the
> communicatoin fails , but dunno why.

Does weblogic not have an error log? Is it possible to set it in debug mode,
so you can get detailed logs?

> 2. I tried and am using MAX_FILE_SIZE with hidden name
> as below
> <INPUT type="hidden" name="MAX_FILE_SIZE>"
> value="10000000">

Well, how did that work? I hope the above isn't a cut-n-paste, because you
need to revise it if that is so. Also, I forgot to mention, that input field
must preceed the file field. The above is set to almost 10 MB, did you
"succeed" (ie. the browser didn't complain) in uploading a bigger file than
that?

Regards,
Robert Andersson




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Max file size for upload

Posted by Nilesh N <ni...@yahoo.com>.
1. Yes, the back-engine is weblogic with which the
communicatoin fails , but dunno why.
2. I tried and am using MAX_FILE_SIZE with hidden name
as below
<INPUT type="hidden" name="MAX_FILE_SIZE>"
value="10000000">
3. jsp is basically an html page. 

Thanks and Regards,
Nilesh.

--- Robert Andersson <ro...@profundis.nu> wrote:
> Nilesh N wrote:
> > So no more apache bridge failure error. However,
> this
> > time I got "page cannot be displayed error".
> 
> That is an Internet Explorer "error message", more
> correctly called "error
> obscurity message", and doesn't say anything else
> than something went wrong.
> Please disable "friendly error messages" (or
> similar) in the advanced
> internet options, so you can see the real message
> Apache is returning. You
> should have something in Apache's error log
> concerning this request.
> 
> > I have a strong feeling that Somewhere , somehow ,
> the
> > apache connection breaks and the redirection to
> the
> > desired jsp page is not happening. but why?
> 
> Perhaps. I have about zero experience with your
> environment, so it is hard
> to speculate on specific errors there. But, I assume
> that a "bridge error"
> happens if something goes wrong when Apache is
> handing over the request to
> the back-end engine (was it weblogic?) in which case
> it might be rejecting
> the request, thus the error.
> 
> I don't know how to help you from here on. Have you
> tried the suggestion in
> my previous e-mail, to include a hidden
> MAX_FILE_SIZE field in the form?
> 
> > I am uploading file via jsp page .
> 
> I assume that means an HTML page?
> 
> 
> Regards,
> Robert Andersson
> 
> 
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 


=====
************************************************************
Nilesh N,
************************************************************
When the going gets tough, the tough gets going.
Average Woman prefers Beauty than Brains Bcoz Average Man Can See Better Than He Can Think.
Love deeply and passionately. You may get hurt, but that is the best way to live life.
************************************************************

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Max file size for upload

Posted by Robert Andersson <ro...@profundis.nu>.
Nilesh N wrote:
> So no more apache bridge failure error. However, this
> time I got "page cannot be displayed error".

That is an Internet Explorer "error message", more correctly called "error
obscurity message", and doesn't say anything else than something went wrong.
Please disable "friendly error messages" (or similar) in the advanced
internet options, so you can see the real message Apache is returning. You
should have something in Apache's error log concerning this request.

> I have a strong feeling that Somewhere , somehow , the
> apache connection breaks and the redirection to the
> desired jsp page is not happening. but why?

Perhaps. I have about zero experience with your environment, so it is hard
to speculate on specific errors there. But, I assume that a "bridge error"
happens if something goes wrong when Apache is handing over the request to
the back-end engine (was it weblogic?) in which case it might be rejecting
the request, thus the error.

I don't know how to help you from here on. Have you tried the suggestion in
my previous e-mail, to include a hidden MAX_FILE_SIZE field in the form?

> I am uploading file via jsp page .

I assume that means an HTML page?


Regards,
Robert Andersson




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org