File upload moved to a seperate file