英文:
S3 Object URL - Downloading partial file (19MB / 100MB)
问题
我在s3存储桶上保存了一个Windows应用程序安装文件(.exe)。在s3控制台中,该文件的大小为100MB。
我还有一个网站,在该网站上,我向特定用户提供该.exe的对象URL(即https://s3.(region).amazonaws.com/(Bucket)/(instllerName).exe)。过去,对象URL足以让用户将安装程序下载到本地计算机。现在,发生的情况是对象URL只下载了一个部分文件(19MB)到我的机器上。
它会完整地将100MB下载到我的计算机上,但一旦我使用对象URL,它就只给我一个部分文件。
我还有另一个Mac安装程序(.dmg),也是100MB,位于同一存储桶的不同s3目录中。对于那个文件,对象URL正常工作。只有这个.exe文件存在这个问题。
有其他人遇到过这个问题吗?
- 我尝试重新将文件上传到s3,以防它可能在s3本身上损坏。
- 我尝试向s3中的文件添加元数据,以指示它是一个应用程序。
- 我尝试使用AWS cli而不是对象URL下载文件,但那似乎只是一个权宜之计 - 这应该正常工作。
英文:
I have a windows application installer file (.exe) saved on an s3 bucket. The size of that file is 100MB as indicated in the s3 console.
I also have a website where I make the object URL of that .exe available to certain users (i.e., https://s3.(region).amazonaws.com/(Bucket)/(instllerName).exe. In the past the object URL was sufficient for a user to get the installer onto their local machine. Now, what's happening instead is the object URL only downloads a partial file (19MB) to my machine.
If I go through the S3 console and click the "download" button
It downloads the full 100mb to my computer just fine, but as soon as I use the object URL - it gives me the partial file.
I have another mac installer (.dmg) that is also 100MB in a different s3 directory in the same bucket. For that file, the object URL works just fine. It's just this .exe file that has this issue.
Anyone else encountered this?
-I've tried re-uploading the file to s3 in case it may be corrupted on s3 itself.
-I've tried adding metadata to the file in s3 to indicate it is an application
-I've explored using the AWS cli to download the file instead of the object URL, but that just seems like a bandaid - this should be working.
答案1
得分: 0
好的,我并没有确切找到这一奇怪现象的原因。但我找到了解决办法。
我发现问题仅出现在特定的文件名上。只要我将想要保存的文件另存为其他任何名称,它就能正常工作。所以我只是改了文件名。
也许这对其他人有帮助!
英文:
Ok so I didn't necessarily find the REASON for this oddity. But I did find a way to address it.
I discovered that it was ONLY that particular filename that was causing issues. If I saved my desired file as any other name it worked fine. So I just changed the name.
Maybe that will help someone else!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论