Estoy creando una función que carga mi archivo desde el disco local y lo carga en el almacenamiento en la nube de Firebase. La función puede encontrar el archivo en el disco local pero muestra un error firebase.storage.storageexception: could not read file . Aquí está mi código
public void StartUpload() { StartCoroutine(Upload()); } private IEnumerator Upload() { var storage = FirebaseStorage.DefaultInstance; var audioreference = storage.GetReference("gs://snack-stack.appspot.com"); string local_file = "file:///" + Application.persistentDataPath + "/" + "UnityTest" + "/" + "lmao.png"; var uploadTask = audioreference.PutFileAsync(local_file); yield return new WaitUntil(() => uploadTask.IsCompleted); if (uploadTask.Exception != null) { Debug.LogError($"Failed to upload because {uploadTask.Exception}"); yield break; } var getUrltask = audioreference.GetDownloadUrlAsync(); yield return new WaitUntil(() => getUrltask.IsCompleted); if (getUrltask.Exception != null) { Debug.LogError($"Failed to get a download url with {getUrltask.Exception}"); yield break; } Debug.Log($"Downloaded from {getUrltask.Result}");