tony121
Karma: -2
|
Re:File Size change Kb to MB - 2007/07/12 15:10
We recently received a PM about how we implemented this on our site. I’m posting the answer here so it is available for everyone (and as a hint to the developer that ppl may like to see this feature added ).
All of our files are added from the Admin side. We manually overwrite the file size field with the equivalent MB size. If you ever search for missing files, this field will be reset to the KB size (for all of the files). You’ll then need to reset them again, so don’t search for missing files.
This could be done with a daily script that searches and modifies these fields. You could determine where and what to modify in the Remository files, we tried but kept missing something . We ended up using a free app called autohotkey that we already use for a wide range things. In this case; the relevant portion when adding files selects this field, removes the letters and commas, divides it by 1024, writes the result, adds a space, and “MB.†Autohotkey can automate just about anything that can be laid out in a logical order so you don’t have to repeatedly do the same thing.
I know the person who PMd us was looking for a simple mod that would do this automatically. Sorry.
|