Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

putData not working but not setting the metadata #36

Open
MukalDadhwal opened this issue Feb 24, 2023 · 0 comments
Open

putData not working but not setting the metadata #36

MukalDadhwal opened this issue Feb 24, 2023 · 0 comments

Comments

@MukalDadhwal
Copy link

putData() function when called on storage reference along by passing settablemetadata uploads the data but with no metadata.
Here is the code

UploadTask task = storage
      .refFromURL('location_url')
      .child('${map['id']}.mp4')
      .putData(uint8List, metadata);

Also no errors are being generated as I am also checking it afterwards

task.snapshotEvents.listen((event) {
    if (event.state == TaskState.error) {
      print('Some serious error is coming');
    } else {
      print('It works');
    }
  });

It works gets printed.
The code works on a flutter app but not inside the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant