Use the correct hostname for file uploads