GitHub可以用于托管文件(mp3和图像)吗? [英] Can GitHub be used for hosting files (mp3 and images)?

查看:326
本文介绍了GitHub可以用于托管文件(mp3和图像)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找免费的文件托管服务,该服务可让我轻松获得静态链接.因此,应将文件1.png,2.png,3.png分配给URL: www. something.com/somepath/1.png www.something.com/somepath/2.png www.something.com/somepath/3.png分别

I am looking for free file hosting service which allow me to get static links to each individual files easily. So, file 1.png, 2.png, 3.png should be assigned to URL: www.something.com/somepath/1.png, www.something.com/somepath/2.png, www.something.com/somepath/3.png respectively

稍后,这些文件将通过可能由许多用户安装的移动应用下载.

Later, the files will be downloaded by mobile app which potentially installed by many users.

在主要存储提供商中搜索Internet之后,只有Dropbox和GitHub允许我获取公共直接的非随机URL(其他一些服务,例如SkyDrive,Box,Copy,4Shared,MediaFire随机化文件名).当然,没有什么可以阻止我使用Dropbox,但是我听说如果流量太高,Dropbox可能会阻止访问.

After searching the Internet, among major storage providers, only Dropbox and GitHub enables me to get public direct unrandomised URL (some other services, e.g. SkyDrive, Box, Copy, 4Shared, MediaFire randomise the filenames). Of course, nothing prevent me from using Dropbox, but I heard that Dropbox may block the access if the traffic is too high.

有人知道GitHub是否允许我们这样做?我知道Git并不是用来跟踪二进制文件的,但是由于文件是静态的(仅1次提交就足够了),因此无需跟踪增量.

Anybody know whether GitHub allows us to do so? I understand that Git is not meant for tracking binary files, but since the files will be static (only 1 commit is sufficient) no delta need to be tracked.

单个文件的最大大小为3-4 MB.将会有1,000个这样的文件.所有文件均无版权.

The maximum individual file size is 3-4 MB. There will be 1,000 of such files. All files are not copyrighted.

*该移动应用将为开源&不用于商业目的.

*the mobile app will be open source & not for commercial purpose.

推荐答案

允许,但是:

  • GitHub的软"限制为每个回购1GB ,这意味着如果您始终保持在 这个限制之上,则会收到一封电子邮件,要求您减少存储库的大小.
    在您的情况下,一个存储库中3到4 GB的存储空间太大.
  • GitHub ToS 禁止对任何非法或未经授权的人使用该服务目的",我们要确保您的mp3并未违反某些版权法.
  • GitHub has a "soft" limit of 1GB per repo, which means if you consistently remains above that limit, you will get emails asking you to reduce the size of your repos.
    In your case, 3 to 4 GB would be too much on one repo.
  • GitHub ToS disallow using the service "for any illegal or unauthorized purpose", os make sure your mp3s don't violate some copyright law.

简而言之,这是有可能的,但这当然不是GitHub的目的.

In short, it is possible, but it certainly is not what GitHub is for.

与Nexus相似的工件回购 确实提供了非随机名称,因此如果您可以将其发布到像Amazon S3之类的服务(没有开箱即用的Nexus支持,但

An artifact repo like Nexus does offer non-randomized names, so if you can publish it to service like Amazon S3 (there is no Nexus support out of the box, but it is possible)

这篇关于GitHub可以用于托管文件(mp3和图像)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆