Interferon Posted December 13, 2017 Posted December 13, 2017 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.
Interferon Posted December 14, 2017 Author Posted December 14, 2017 Am I doing something wrong? Is It possible to prevent the renaming of zip files to things like File.zip_87249872346248628746234?
Cyrem Posted December 14, 2017 Posted December 14, 2017 I found that if your filename has no spaces or special characters, it does not occur for me.
SJ77 Posted December 17, 2017 Posted December 17, 2017 I’m guessing this is to keep the file names unique so the system can always access the correct file
opentype Posted December 17, 2017 Posted December 17, 2017 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
Interferon Posted December 17, 2017 Author Posted December 17, 2017 4 hours ago, opentype said: 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"?
Mark Posted December 17, 2017 Posted December 17, 2017 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.
Cyrem Posted December 17, 2017 Posted December 17, 2017 19 hours ago, Interferon said: That is not true. Well it's true in my case.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.