简体   繁体   English

Django boto3 与 s3 无法在生产中工作

[英]Django boto3 with s3 not working in production

So I am currently trying to enable large file uploads for my site www.theraplounge.co/ the only problem is I'm using boto3 to upload directly to s3 with https://justdjango.com/blog/how-to-upload-large-files as a guide.所以我目前正在尝试为我的网站www.theraplounge.co/启用大文件上传,唯一的问题是我使用 boto3 直接上传到带有https://justdjango.com/blog/how-to-upload-的 s3大文件作为指导。 The good thing is large files get uploaded when I'm on development server.好消息是当我在开发服务器上时会上传大文件。 When I launch code to production server on heroku large files don't upload anymore.当我在 heroku 上将代码启动到生产服务器时,大文件不再上传。 I don't think code would work locally but not in production which leads me to think the problem may be heroku 30s timeouts although I'm not sure.我认为代码不能在本地工作,但不能在生产环境中工作,这让我认为问题可能是 heroku 30 秒超时,尽管我不确定。 Anyone got a glue or a hint at what's going on?有人得到胶水或提示发生了什么吗?

Actually I ended up using Javascript AWS SDK to upload the video plus some of my own work arounds to create a two step process that uploads large files.实际上,我最终使用 Javascript AWS SDK 上传视频以及我自己的一些解决方法来创建上传大文件的两步过程。 Give it a try and create a account on my site.试一试并在我的网站上创建一个帐户。 www.theraplounge.co/ I manually set the max file size to 500MB but it could go bigger. www.theraplounge.co/我手动将最大文件大小设置为 500MB,但它可以 go 更大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM