Fixing file upload post

I had hard coded a link to my localhost and I changed it to refer to a
relative link so that it will work in any envoronment.