简体   繁体   English

在服务器上托管的 R 闪亮工具上上传大文件

[英]Uploading large files on R shiny tool hosted on server

When running on local, I can upload large files in no time by reading the path but on the server where I am trying to get the file from client's system, I have no option of reading the path, so I have to use fileinput function instead.在本地运行时,我可以通过读取路径立即上传大文件,但是在我试图从客户端系统获取文件的服务器上,我没有读取路径的选项,所以我必须改用 fileinput 函数. But the problem is, It takes a lot of time for uploading large files.但问题是,上传大文件需要很多时间。 Is there an alternate to fileinput that I can use on the server.我可以在服务器上使用 fileinput 的替代方法吗?

Thanks谢谢

Have you tried increasing your max request size.您是否尝试过增加最大请求大小。 Maybe it should solve your issue.也许它应该可以解决您的问题。

options(shiny.maxRequestSize = 60*1024^2)

With the above code it accepts files upto 60MB.使用上面的代码,它接受最大 60MB 的文件。

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

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