bandnet.org Forums

Full Version: rename uploaded files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Something I want is files renamed to make it easier to identify what file is by which artist.

What naming scheme should I use?

I'm thinking 'artist - title.extension'

Title is picked from the title forum field. If nothing is entered there it checks the files metadata, if available, and as a last resort the filename. Artist is whatever the name of the artist happens to be.

Should I try to include the folder name or leave as is? I'm thinking I'll set this up as a thing I can change pretty easily anyway. Might rewrite all that file uploading code...
Uhm, it's unclear... when you say "filename", do you mean "the filename as it is stored on the server, which is something else than what visitors will see". Or do you mean "the filename, as people will see it when they download files"?
Filename as it is when the file is uploaded. If it already has metadata then the filename won't be used. Otherwise the title used for the file will be the filename without the extension.

This idea would be to rename the file on the server, which would mean anyone downloading would use the new filename.

BTW, I found a bug when downloading one of your files so thanks. The empty file hash is somehow getting in rather than the proper hash for the full file. Only happens with OGG and MP3 files.

Edit: It appears that bug only happened with OGG and only happened because I'd decided I might as well store the data hash for OGG files in case Shareaza ever switched to using tagless hashes for OGG files. MP3 files were fine, as it happens. Should've been fixed now. OGG files will only use the full file hash.
Reference URL's