My knowledge is pretty limited and I seem unable to figure this out, could anybody help? (I'm using HFS 2.3 b274)
Well, pretty much I just want to make it so that when a user uploads a file, HFS automatically appends the name of the file to something else, and then shows it as such in the upload results page. I created a javascript for a random string of letters and numbers, and I want to make it so that if somebody uploaded "document.txt", using the JS it would be changed to something like "9SLQN3TYE6RPBW4Y7GLTLX2L9IQNY40N____document.txt" . I'm assuming this could be done with Macros with something along the lines of .rename.| "(my javascript)" + "____" + "%item-name%" | but I'm not sure and I'm really not familiar with HFS macros.
Better yet, I need this to be done in the template rather than in HFS.events because I only want it to happen in one part of my site for extra security.
An even more amazing feat (that I have no idea how to do) would be to have it take off the first 32 characters on a file name when downloading the file so that the random string is gone . . .
Thanks,
Raybob