Skip to content

putData not working but not setting the metadata #36

Description

@MukalDadhwal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions