将zip文件提取到Django项目中的s3存储桶

时间:2020-05-29 12:35:52

标签: python django amazon-web-services amazon-s3 zipfile

我是Django和aws的新手。我想提取用户在Django中上传的zip文件,当用户上传文件时,文件完美存储在s3存储桶中,但是问题是我无法将文件提取到s3文件夹

{"received":1588687345,"guid":"0CA2F400004","eventtype":"sensor","payload":{"time":1588687345,"sensor":[{"type":"temp","unit":"degc","value":20}]}}
{"received":1588687346,"guid":"0CA2F400004","eventtype":"sensor","payload":{"time":1588687344,"sensor":[{"type":"temp","unit":"degc","value":22}]}}
{"received":1588687346,"guid":"0CA2F400004","eventtype":"sensor","payload":{"time":1588687346,"sensor":[{"type":"temp","unit":"degc","value":22}]}}
{"received":1588687348,"guid":"0CA2F400004","eventtype":"sensor","payload":{"time":1588687347,"sensor":[{"type":"temp","unit":"degc","value":28}]}}
{"received":1588687349,"guid":"0CA2F400004","eventtype":"sensor","payload":{"time":1588687347,"sensor":[{"type":"temp","unit":"degc","value":-667}]}}

有人可以帮我吗

0 个答案:

没有答案