#1639: Add helper function to get the path a file should be saved to.
#1639: Return the new file to js when its uploaded via ajax.