0
Hy全部,djangorestframework存儲文件從POST到s3
我花了很多時間搜索這個沒有真正的結果。
我想上傳文件到Aws s3(文件可以很大),我得到的文件與發佈請求。
我已經嘗試使用filechunkIO在boto的officiel文檔中的代碼,但它不適用於python 3.4,它僅適用於python 2.7。
def post(self, request):
file = request.FILES['file']
#upload to s3
.....
return Response(true, 200)
感謝
似乎django-s3direct使用Javascript上傳不是python。我想用python(boto)上傳文件。 – 2014-09-29 08:15:03