上传图片->生成缩略图..
出现Bug:
          p_w_picpath file is truncated
原因:
          PIL读取了未上传完的图片..
改之前:
            destination = open(filePath, 'wb+')
            for chunk in f.chunks():
                destination.write(chunk)
改后:
            destination = open(filePath, 'wb+')
            for chunk in f.chunks():
                destination.write(chunk)
            destination.close();
 
 
 
python 切图的示例:
改的代码: