Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试构建一个通过块支持大文件的 HTML5 文件上传器。我已经在网上找到了足够的文档来处理前端的事情,但是我看到关于如何在块到达服务器后重建块的零信息(我正在使用 Rails。)有什么帮助吗?
所以你有多个文件包含一大块大文件?然后就做
File.open("file", "w") do |large_file| %w(file1.chunk file2.chunk file3.chunk).each do |chunk| # %w() creates an Array large_file.write(File.read(chunk)) end end