Hello developers every where,
i saw many articles and reddit posts about uploading best practices (this one of the posts)
the point i'm asking for is "Restrict file size. Not just big files, but small files. (DDOS yo!)", what does that mean?
is that mean that i have to make if condition in my code to check if size == 0 || size > max_size
to show error message?
becase i can't add minimum limit of my files, i can't say that the minimun file size will be 1 Kb, because it may be very small text file or image.
so, what is the best practice to do that?