A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Maxium file size for upload


Some web pages only allow a user to upload files less than a certain size. For example, Twitter permits videos up to 15MB.

At the moment, a web developer can write an “accept” filter like
<input type="file" accept="image/*,video/mp4" />

Would it be useful to have

  • <input type="file" size="15MB" />
  • <input type="file" max-file-size=123456789 />
  • <input type="file" size="15MB video/mp4, 256KB image/*" />
  • or something of that ilk?