Upload file and convert to base64