通过网站上传大视频

发布于 2024-09-06 03:22:19 字数 406 浏览 4 评论 0原文

可能发生的一些问题包括超时、断开连接以及无法恢复文件而必须从头开始。假设这些文件的大小约为 5gigs,处理此问题的最佳解决方案是什么?

我正在为网站安装 Drupal 6。

由于服务器设置,我必须处理一些限制:

  1. 一次最多 200 个连接的共享主机(无限磁盘空间)
  2. 共享主机。
  3. 无法通过 API 创建用户(因此无法自动生成 ftp 帐户)

我确实能够通过 Drupal 模块运行 cron 类型脚本。

我最初的想法是基于 Drupal 帐户创建 ftp 用户,并要求他们为他们选择的操作系统下载 ftp 客户端。但缺乏自动创建 ftp 帐户的 API 以及无法从命令行执行此操作有点阻碍了该解决方案。如果有人能想到解决方法,请告诉我!

谢谢

Some of the problems that can happen are timeouts, disconnections, and not being able to resume a file and having to start from the beginning. Assuming these files are up to around 5gigs in size, what is the best solution for dealing with this problem?

I'm using a Drupal 6 install for the website.

Some of my constraints due to the server setup I have to deal with:

  1. Shared hosting with max 200 connections at a time (unlimited disk space)
  2. Shared hosting.
  3. Unable to create users through an API (so can't automatically generate ftp accounts)

I do have the ability to run cron-type scripts via a Drupal module.

My initial thought was to create ftp users based off of Drupal accounts and requiring them to download an ftp client for their OS of choice. But the lack of API to auto-create ftp accounts and the inability to do it from command line kind of hinder that solution. If there's a workaround someone can think of, let me know!

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

愿得七秒忆 2024-09-13 03:22:19

通常,共享主机不支持通过浏览器上传大文件。解决方案可能是使用另一个文件托管来托管您的大型上传。 Amazon S3 是一个很好且简单的集成解决方案,它的 基于浏览器的上传,使用 POST

它可以集成到自定义模块中,该模块提供使用 Drupal 保护的上传表单 访问控制。如果您需要将文件托管在 Drupal 服务器上,则可以使用 cron(Drupal 的 或外部)将文件从 S3 移动到您自己的托管。

Usually, shared hostings does not support large files uploads through the browser. A solution may be to use another files hosting for your large uploads. A nice an easy solution to integrate is Amazon S3 and its browser based upload with a from POST.

It can be integrated in a custom module that provide an upload form protected using Drupal access control. If you require the files to be hosted on the Drupal server, you can use cron (either Drupal's or an external one) to move the files from S3 to your own hosting.

绳情 2024-09-13 03:22:19

您在共享主机上可以做的事情有点有限。您最好的选择可能是安装 SWFUpload 并希望不会出现很多上传中错误。

您可能无法在共享主机上使用的更好选项包括上传进度 PHP 扩展 (Drupal 在安装时自动使用),并且正如您所说,将 FTP 帐户与 Drupal 帐户关联起来。

You're kind of limited in what you can do on a shared host. Your best option is probably to install SWFUpload and hope there aren't a lot of mid-upload errors.

Better options that you probably can't use on a shared host include the upload progress PHP extension (which Drupal automatically uses when it's installed) and, as you said, associating FTP accounts with Drupal accounts.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文