Files need a physical location on the server -- would you like the file to be uploaded normally but accessible at the new link? I suppose a broader question would be: what is the end result you're looking for? What is
my_function
doing? I think I could suggest some more straightforward ways of accomplishing this without hacking the node form.