我想直接上传文件到bcs但是不行
错误:must be encoded string without NULL bytes, not str
elif request.method == 'POST': file = request.FILES['cs'] b = bcs.bucket(BUCKET) name = '/%s' % file.name o = b.object(name) o.put_file(file.read()) 谢谢!
自己搞定了,先写到/temp目录,上传到bcs后删除