简体   繁体   中英

Don't show thumbnail in upload file use primefaces

I want don't show thumbnail when i upload images. How can i remove it ? Example : https://lh3.googleusercontent.com/-nWDNS4695Lg/UtTy3-c9y2I/AAAAAAAAArY/USGOIL43Iyg/w979-h314-no/Capture4.PNG (sr, i can't show image in here) Anymore, i want just upload one image in one time. Clearly, when i choose file A (not click upload or cancel) and then i choose file B, i want replace file B to file A (Panel upload file just show final file choose, file B). How can i do that ? Follow example picture, it just show $RBLX1U4.jpg to upload or cancel

you just use

               <p:fileUpload value="#{bean.file}" mode="simple"/>

It allows only single file upload without thumbnail of the doc.

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