PDA

View Full Version : MD5 filenames


123vid
04-13-2006, 11:50 PM
Ryan, I am wondering if there is any reason that the script is hashing all of the file names upon adding them? Maybe for a previous version..?? Anyway, how can I make it stop changing the filenames to a hash? I found the code in the script that does the hashing and just want to know what to change without breaking everything. With all the renaming going on, it's virtually impossible for me to find a certain file through ssh or ftp.

Thanks for your help!

Ryan
04-14-2006, 12:00 AM
Hashing was done on filenames to prevent issues with certain characters and duplicate file names. I do not recommend changing how this system works because it will only cause problems.

123vid
04-14-2006, 12:08 AM
Maybe is there away that the script could chop off the first five or six letters of the file name and append them in front of the hash? I am just trying to figure out a way that I can identify the files through the filesystem.

123vid
04-14-2006, 12:10 AM
I do underatand what you're saying though... you're referring to characters that php would normally need to escape to use, right?

Ryan
04-14-2006, 12:19 AM
Exactly, or the web browser would have issues displaying. Your FTP browser should order them in alphebetic order. I'm not sure why you would have a huge problem with finding the files? There are only 16 characters in a md5 hash, 0-9 and A-E. Maybe that could be of some assistance to you.

123vid
04-14-2006, 12:38 AM
Sure, it displays in alphabetically order, but still, how am I supposed to identify which filename belongs to which video when there are tons of files?

Ryan
04-14-2006, 12:43 AM
If you're looking for a specific file, goto the admin panel and hoover your mouse over the file for a preview. It will then give you the filename in the status bar of your browser.