You are viewing limited content. For full access, please sign in.

Question

Question

To change file maximum size fro file input

asked on October 19, 2022

Hello, guys.

Do you know how to change the maximum size from file input with javascript?

We want to change it dynamic way with a value wich is in a table.

 

0 0

Replies

replied on October 19, 2022

No, max file size is a Forms server-side control. Being able to adjust it with client-side JavaScript would allow people (and attackers) to bypass the configured limit.

1 0
replied on October 21, 2022

On second thought, you might be able to put an additional limit on client-side, as long as it is never higher than the configured server-side limit. I don't personally know how to do that though.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.