1

Original file names

Letiliel's Avatar Letiliel5/14/11 6:58 am
1 emeralds 526 8
5/14/2011 12:19 pm
Letiliel's Avatar Letiliel
Would it be possible to not rename the files on upload ? "nameofthing_948724_texture" is not very sexy nor practical.
Posted by Letiliel's Avatar
Letiliel
Level 88 : Elite Farmer
840

Create an account or sign in to comment.

8

Letiliel
05/14/2011 12:19 pm
Level 88 : Elite Farmer
Letiliel's Avatar
Here's a list of reserved characters on the various systems: http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
I think the ones I cited above (space, single quote, period) are safe. But yeah, I do remember having issues with php file managing relating to filenames...
1
Cyprezz
05/14/2011 11:33 am
Level 71 : Legendary Cyborg
Cyprezz's Avatar
Yah, I feel the need to run it through a filter to remove any "odd" characters that may break the file for some operating systems. Some filenames are valid on one operating system but not another. I no longer add anything to the name though.
1
Letiliel
05/14/2011 11:24 am
Level 88 : Elite Farmer
Letiliel's Avatar
Er, wow, that was fast ! ^^

Tested, it still changes spaces with hyphens, caps with lower case, removes dots and single quotes, etc. but it's much better !
1
Cyprezz
05/14/2011 11:12 am
Level 71 : Legendary Cyborg
Cyprezz's Avatar
Updated. Site will only rename when it detects the file already exists. Test it out
1
Cyprezz
05/14/2011 10:16 am
Level 71 : Legendary Cyborg
Cyprezz's Avatar
Yep, it's on my list to do. Let me bump it up.
1
Letiliel
05/14/2011 10:49 am
Level 88 : Elite Farmer
Letiliel's Avatar
Great, thanks !
1
Smink
05/14/2011 7:39 am
Level 58 : Grandmaster Pegasus
Smink's Avatar
Is this for mcedit cause ive never had this problem ^.0?
1
Letiliel
05/14/2011 9:07 am
Level 88 : Elite Farmer
Letiliel's Avatar
I'm not sure what you mean but MCEdit schematics are renamed too when uploaded to PMC. Example here
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome