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. interceptor-ref name=fileUpload param name=allowedTypesimage/png,image/gif,image/jpeg,text/plain/param /interceptor-ref /action -Original Message- From: sajidbigler [mailto:sajidbig...@gmail.com] Sent: Monday,

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 action name=MMSUpload class=com.teleparadigm.mms.application.mms.MMSUploadAction interceptor-ref name=i18n / interceptor-ref

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:

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

2009-03-16 Thread ravindra
Check this page, http://cwiki.apache.org/WW/file-upload.html Make sure you have all jar files and other properties they mentioned in it. -Original Message- From: sajidbigler [mailto:sajidbig...@gmail.com] Sent: Monday, March 16, 2009 4:47 PM To: user@struts.apache.org Subject:

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

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

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:

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 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