简体   繁体   English

不要在上传文件中显示缩略图使用质数

[英]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. 范例: https : //lh3.googleusercontent.com/-nWDNS4695Lg/UtTy3-c9y2I/AAAAAAAAArY/USGOIL43Iyg/w979-h314-no/Capture4.PNG (sr,我在这里无法显示图像)再说了,我只想上传一次一幅图像。 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). 显然,当我选择文件A(而不是单击上载或取消),然后选择文件B时,我想将文件B替换为文件A(面板上载文件仅显示最终文件选择,文件B)。 How can i do that ? 我怎样才能做到这一点 ? Follow example picture, it just show $RBLX1U4.jpg to upload or cancel 跟随示例图片,它只是显示$ RBLX1U4.jpg上传或取消

you just use 你只用

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

It allows only single file upload without thumbnail of the doc. 它仅允许单个文件上传,而没有文档的缩略图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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