Jump to content

The randomized single-file attachment file names really suck

Featured Replies

Posted

We're building a system similar to itch.io and it's really a drag when the author uploads a zip file called "My Game.zip" but the resulting download is named something like "23498738432423_MyGame.zip_32498749824".  It's really hurting us from being able to do this, because the user downloads a game and then has no idea which file it's in.

I'm talking about database fields.

  • Author

Am I doing something wrong?  Is It possible to prevent the renaming of zip files to things like File.zip_87249872346248628746234?

I found that if your filename has no spaces or special characters, it does not occur for me.

  • Author

That is not true.

I’m guessing this is to keep the file names unique so the system can always access the correct file

  • Author
 

It needs to be unique on the server for obvious reasons. Download names can be influenced with HTML 5 though: https://davidwalsh.name/download-attribute

Why not just create a subfolder with a randomized name i.e. "2017_12 \ JFjkHFDKJHFKSJFHDSKFH \ MyFile.zip"?

It should download with the original filename. If that doesn't seem to be working for you, submit a ticket and we can take a look.

  • Author

Thank you!

 

That is not true.

Well it's true in my case.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.