added base64 upload