简体   繁体   中英

rich:fileUpload not working without flash

I am using rich:fileUpload for uploading multiple files. It works just fine when I have allowFlash="true" but, when I set allowFlash="false" it doesn't work anymore. It just doesn't do anything.

Could someone please help me understand why this doesn't work.

I had similar problem. There was an error in the server.log:

org.richfaces.exception.FileUploadException: Exception parsing multipart request: Request prolog cannot be read

The problem has something to do with Glassfish 3.1.2 (see the bug report ). The solution is to download web-core.jar from the top of the site and overwrite the old file in glassfish.

To solve this problem, simply add the following to your components.xml to disable the Seam multipart filter and the rich:fileUpload will work. Not sure if this will break any other Seam features.

web:multipart-filter disabled="true" 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM