简体   繁体   English

使用回形针上传大文件

[英]Uploading large files with Paperclip

I want to be able to routinely upload about 3x 20mb files to a specific type of record in a Rails app. 我希望能够按惯例将大约3x 20mb的文件上传到Rails应用程序中的特定记录类型。 So far I'm using Paperclip and I get a pretty average success rate and a lot of EOF (bad content body) errors. 到目前为止,我正在使用Paperclip,并且获得了相当平均的成功率以及很多 EOF (bad content body)错误。

What can I do to improve the situation? 我该如何改善情况? Googling rails large upload doesn't turn much up. 谷歌搜索栏大上传不会出现太多。

Uploading large files, while slow, should succeed. 上传大文件虽然很慢,但应该可以成功。 The EOF (bad content body) error seems unrelated. EOF (bad content body)错误似乎无关。

What are you using to upload the files? 您正在使用什么来上传文件? A standard multipart web form? 标准的多部分网络表单? And is anything unusual happening with the server configuration? 服务器配置是否发生任何异常情况? Or are you using POW? 还是您正在使用战俘? Apparently POW users have reported similar issues . 显然,战俘用户报告了类似的问题

For large files, I typically use S3 for storage and would recommend uploading directly to S3 . 对于大文件,我通常使用S3进行存储,建议您直接上传到S3

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

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