Re: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread Dave Newton
sajidbigler wrote: i have done and followed all steps and following are the jars in my application(MMSApplication\WebRoot\WEB-INF\lib) commons-beanutils-1.7.0.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.1.jar dwr

Re: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread Dave Newton
sajidbigler wrote: why forum skips files \MMSApplication\WebRoot\WEB-INF\lib in bracket and param name="allowedTypes" in struts.xml while i post it ? :( application/vnd.ms-excel Probably because it tries to interpret tags as actual tags; that's why using the mailing list directly and posting

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
why forum skips files \MMSApplication\WebRoot\WEB-INF\lib in bracket and param name="allowedTypes" in struts.xml while i post it ? :( application/vnd.ms-excel -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-proper-error-messag

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
I think if jars are not included properly it would not even allow me to submit correct files() but i can do every thing and more over its telling the file is not a correct contentType but no message is shown to user in browser :( i even kept struts.properties struts.custom.i18n.resources=MMSApp

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
Error on Console Mar 16, 2009 4:50:49 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger error SEVERE: Content-Type not allowed: upload "simplifiedapi.pdf" "upload__1ed47216_1200f02e810__8000_0001.tmp" application/pdf Error on Browser HTTP Status 500 - type Exception report mes

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread ravindra
: RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user Hi Ravindra, I have done it but really dont no why it dint got pasted properly on forum image/png,image/gif

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
I have included this but still errors wont be send to end user and more over surprizingly why the forum trims these lines when i copy/paste from my struts.xml :( image/png,image/gif,image/jpeg -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-workin

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
Hi Ravindra, I have done it but really dont no why it dint got pasted properly on forum image/png,image/gif,image/jpeg

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread ravindra
You have to mention param -allowed types. image/png,image/gif,image/jpeg,text/plain -Original Message- From: sajidbigler [mailto:sajidbig...@gmail.com] Sent: Monday, March 16, 2009 4:23 PM To: user@struts.apache.org Subject: Fileupload : Restricted cont