This page is a wiki. Please login or create an account to begin editing.


6 posts / 0 new
Last post
MikeTomTom's picture
Offline
Joined: 2009 Dec 7
Uploads to the Garden and associated Download issues

If you upload a file - suppose this file is named somefile.sit - M-Garden will often add an underscore and number to the filename renaming the file to somefile_0.sit (without asking). The "Download button" carrying a http://s3.amazonaws.comlink however, will be pointing to the original filename's name that got uploaded e.g. "somefile.sit" and it will invariably fail...

For example, if I upload "somefile.sit" and then click the "Download button" getting the response:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>somefile.sit</Key>
<RequestId>BFCE01502F3390F2</RequestId>
-
<HostId>
1mTHjNRcAgWrxsLGtjMYhGqV9JSqN7UhEaSecMU3dJ2EO7GNp7SNogVTj5oxggGW
</HostId>
</Error>

It's not just me who gets this error, correct?

It is invariably because the M Garden has added an "underscore + number" onto the downloads filename and has not passed this info on to s3.amazonaws. It instead appears to pass on the original uploaded filename and not what the file is now renamed as.

It is faster and more reliable for a registered member to download a troublesome file by choosing to "Edit" the page then right-click onto the actual (altered by M Garden) filename's link, such as somefile.sit's link now named:

http://macintoshgarden.org/sites/macintoshgarden.org/files/apps/somefile_0.sit

This almost guarantees a successful DL - However I don't think that this is how it should be done.

I'm of the opinion that this is a Macintosh Garden upload bug and not a problem with s3.amazonaws

But its just my opinion and I could be wrong. Anyone?

Comments

n0's picture
n0
Offline
Joined: 2009 Jun 22

What exactly is s3.amazonaws ?

amatecha's picture
Offline
Joined: 2010 Mar 10

It's a file hosting service from Amazon, used for conveniently hosting large numbers of files. It's really often used for stuff like user uploads, on websites. An example would be, all of the photos on a social networking site like Facebook, or, all of the mp3s uploaded on a musicians' community.

More info here: http://en.wikipedia.org/wiki/Amazon_S3

bertyboy's picture
Offline
Joined: 2009 Jun 14

Amazon Web Services. It looks like they're hosting either all the files or those over a certain size, ie. 1MB.

So it's either the site PHP, or amazon who are renaming the file. This can happen automatically in PHP if we upload a file with a filename already in use.

MCP's picture
MCP
Offline
Joined: 2010 Mar 12

We covered all this a long time ago; I'm sure there's an old forum post or something that probably should be stickied so that we can find it easily whenever someone new is curious about it. Or maybe just sticky this one.

devilsbook's picture
Offline
Joined: 2010 Sep 3

I noticed that this is still an issue for a number of files - e. g. http://macintoshgarden.org/apps/ambiance has the file renamed to Ambiance_1.sit (probably automatically by PHP, I guess). Is there any way to manually fix these links?