Set max size for file input

前端 未结 2 1986
甜味超标
甜味超标 2021-01-17 01:40

I have used HTML file input to select a file for uploading using a custom AngularJS directive. Now I want to set the max allowed file size for the input. If the file size is

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 02:28

    I would say you need to configure the backend to halt the upload when a certain size is reached. There are a number of ready to use directives, for the front-end stuff - just search for angular upload file backend. For the backend, you should indicate the backend you use for further help.

提交回复
热议问题