-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I have an issue when using an application based on ZK framework. I would like to upload a file tar.gz on the application which include an extension control:
<u:button zclass="btn btn-info" iconSclass="fas fa-file-upload" label="Charger un fichier" upload="true,maxsize=-1,accept=application/x-gzip" onUpload="@command('uploadRessource')" />
Unfortunately, on my computer, the file is always rejected. I have made the following controls: - my file is a correct tar.gz file - I have tried with Chrome, Firefox and Edge - I have asked to 2 other collegues (with the same files than me) and the file is correctly uploaded in their side (so it seems a problem in my comptuer) - I have clear cache on my browser ...
Could you please help me? Thank you in advance.
What do you mean "rejected"?
Do you mean when a file chooser appears, you cannot select a tar.gz file? Please open the chrome developer tool to inspect the element:
Or do you mean you can choose a tar.gz file to upload, but your file is rejected by a server? Can you check is there any error at the browser or at the server-side? Please check developer tool > Console tab for browser errors.
When I choose a tar.gz file to updload, the file is rejected by the server.
Sorry the application is in French but the error is "the file ....tar.gz is not a tar.gz archive". As explain, the same file uploaded from other computers on the same application are correctly uploaded...
As you could see in the screenshot, I don't see any error in the browser "developer tool > Console tab"
I will check if I could access to the server errolog.
I can't find that error message in zk built-in message files. Can you check whether you customize a javascript widget or implement validation in Java to validate files in your code?
Asked: 2022-03-23 18:29:36 +0800
Seen: 18 times
Last updated: Jan 03
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled:
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException