overtrue / vue-avatar-cropper

:girl: A simple and elegant avatar cropping and upload plugin.
https://github.com/overtrue/vue-avatar-cropper
506 stars 93 forks source link

当选择大文件时候,比如2-3MB的照片时候,就无法加载了 #14

Closed passioncsu closed 6 years ago

passioncsu commented 6 years ago

所以这个问题是不是必须得提前把图片设置小一点呢?有其他解决方案吗?

wmcmurray commented 6 years ago

I had this issue because my app is behind Nginx so if the file exceed maximum upload file size defined in the config, my API would return an Nginx html error page instead of a Json object and this project was not handling such case, so I added this in this pull request : #16 (precisely on that commit : https://github.com/overtrue/vue-avatar-cropper/pull/16/commits/4ad53d5699c5c31a819dff1d920f3e2fdb09920d )

wuguojun1006 commented 6 years ago

文件后缀名这个问题还没解决掉吗?

overtrue commented 6 years ago

@wuguojun1006 请正确描述你的问题,以便于方便的解决。

wuguojun1006 commented 6 years ago

图片裁剪提交后Request Payload中的 filename = "unknown"