使 .dmg 可供从网站下载

发布于 2024-09-28 17:58:46 字数 257 浏览 0 评论 0原文

美好的一天,可爱的电脑人民!

我已经将 .dmg 文件上传到我的服务器,但是当我通过将网络浏览器指向目录中的位置(即使用它的 URL)来测试它是否可下载时,我得到了 404。

任何可能的想法可能会发生吗?

谢谢


编辑 1,

我意识到 404 意味着它找不到该项目,但我盯着这两个地址(浏览器中的地址和我使用的 FTP 客户端中的地址),它们看起来相同。我的 .dmg 名称中有一些下划线。这可能是问题所在吗?

Good day lovely computer peoples!

I've uploaded a .dmg file to my server, but when I test to see if it is downloadable by pointing the web browser to it's place in the directory (i.e. using it's URL) I get a 404.

Any possible ideas of why this could be happening?

Thanks


EDIT 1

I realize that the 404 means that it can't find the item, but I'm staring at both addresses (the one in the browser and the one in the FTP client that I use) and they seem identical. I have some underscores in the name of the .dmg. Could that be the problem?

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

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

发布评论

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

评论(2

孤星 2024-10-05 17:58:46

您需要确保为文件扩展名添加 mime 类型。现在大多数服务器不允许访问其 MIME 类型列表中没有显式文件扩展名声明的文件。

您没有说明您正在使用什么服务器,因此我无法为您提供有关如何操作的具体说明,但在大多数服务器中这相当简单。只需用谷歌搜索您的网络服务器名称并用引号“添加 mime 类型”即可。

You need to make sure you add a mime type for the file extension. Most servers now days do not allow access to files that don't have explicit file extension declarations in their list of mime types.

You didn't say what server you're using so I can't give you specific instructions on how to do it but in most servers it's fairly easy. Just google your webserver name and "add mime type" with the quotes.

紫﹏色ふ单纯 2024-10-05 17:58:46

找不到 myfile.dmg。仔细检查文件位置和您指向的 URL。

The myfile.dmg is not found. Double check the file location and the URL you are pointing to.

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