0

File extension control issue

asked 2022-03-23 18:29:36 +0800

Syrnos gravatar image Syrnos
101

updated 2022-03-24 10:44:39 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

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.

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2022-03-24 11:00:22 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

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:

image description

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.

link publish delete flag offensive edit
0

answered 2022-03-24 16:55:39 +0800

Syrnos gravatar image Syrnos
101

When I choose a tar.gz file to updload, the file is rejected by the server.
image description
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.

link publish delete flag offensive edit
0

answered 2022-03-24 17:26:58 +0800

Syrnos gravatar image Syrnos
101

I have checked: there is no particular error in the server log (catalina.out). Thank you in advance for your help.

link publish delete flag offensive edit
0

answered 2022-03-28 09:58:21 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

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?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2022-03-23 18:29:36 +0800

Seen: 18 times

Last updated: Jan 03

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More