Fixing uploads for running on server.