Preparing for upload to server