0

I know there is a way to restrict the size using jQuery. But is there a way to restrict the size in the HTML element itself? Kind of like accept in <input type="file" accept=".jpg,.jpeg,.png"/>?

Or does it have to be done in JavaScript. Also what if someone has JavaScript disabled? Then the only line of defense is the server right?

So how can I restrict the size of the file uploaded without using jQuery?

Alex Ironside
  • 4,658
  • 11
  • 59
  • 119

0 Answers0