Are there file size limitations when using javascript FileReader API?

前端 未结 2 816
小蘑菇
小蘑菇 2020-12-10 06:09

You can use javascript FileReader API to display a preview of an image which is provided from a file input field. This comes in very useful in the sense that you don\'t have

2条回答
  •  攒了一身酷
    2020-12-10 06:35

    It seems in Chrome 45 the limit is 261 MB.

    Unfortunately there is no error (FileReader.error == null) when the size is above that limit, the result is just an empty string.

提交回复
热议问题