flutter_uploader icon indicating copy to clipboard operation
flutter_uploader copied to clipboard

tag is not returned in the progress or result

Open motifx007 opened this issue 3 years ago • 1 comments

I was trying to upload a video, image and file at the same time. I used tag for each one. During the progress/result, the tag field is not returned.

    _videoTaskId = await _uploader?.enqueue(
      RawUpload(
        url: url,
        path: path?.first.path, // required: list of files that you want to upload
        method: UploadMethod.PUT, // HTTP method  (POST or PUT or PATCH)
        tag: 'video_tag', // custom tag which is returned in result/progress
      ),
    );
  }

I am using 'flutter_uploader: ^3.0.0-beta.3'. In the older versions, there is the possibility of getting the tag from progress/result

motifx007 avatar Jan 20 '22 06:01 motifx007

From the looks of this comment, the tag is only returned on Android: https://github.com/fluttercommunity/flutter_uploader/blob/874f6a442fe26bd0917d2e2593f115c492eb4d92/lib/src/upload.dart#L24-L25

spatialbits avatar Jun 03 '22 22:06 spatialbits