aws-mobile-appsync-sdk-android icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-android copied to clipboard

Multiple file upload does not work

Open Yegorisa opened this issue 5 years ago • 4 comments

Bug description I have a mutation which includes 4 complex S3ObjectInput but when I call it AppSync client uploads only first one.

mutation SendRideData(
        $id: String!,
        $workoutName: String!,
        $email: AWSEmail!,
        $duration: Int!,
        $powerAvg: Int!,
        $powerMax: Int!,
        $rpmAvg: Int!,
        $rpmMax: Int!,
        $hrAvg: Int!,
        $hrMax: Int!,
        $json: S3ObjectInput,
        $tcx: S3ObjectInput,
        $imageRPM: S3ObjectInput,
        $imageHR: S3ObjectInput,
        $imagePower: S3ObjectInput) {
  rideDataEmail(input: {
    id: $id
    workoutName: $workoutName
    email: $email
    duration: $duration
    powerAvg: $powerAvg
    powerMax: $powerMax
    rpmAvg: $rpmAvg
    rpmMax: $rpmMax
    hrAvg: $hrAvg
    hrMax: $hrMax
    tcx: $tcx
    imageRPM: $imageRPM
    imageHR: $imageHR
    json: $json
    imagePower: $imagePower
  }) {
    workoutName
    email
    json {
      bucket
      key
      region
    }
  }
} 

Expected behavior To upload all of the S3ObjectInput objects

Environment(please complete the following information):

  • AppSync SDK Version: 2.7.9
  • S3 SDK Version: 2.13.5

Yegorisa avatar Jun 05 '19 01:06 Yegorisa

I found also a similar issue for JavaScript sdk https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/161. I suspect Android SDK has the similar one

Yegorisa avatar Jun 05 '19 02:06 Yegorisa

@Yegorisa Thanks for reporting this. I will investigate the issue and post an update.

desokroshan avatar Jun 05 '19 19:06 desokroshan

@desokroshan I have submitted a pull request with a fix of this issue. Pull request link

Yegorisa avatar Jun 06 '19 03:06 Yegorisa

@Yegorisa Thanks for the PR. I will review it soon as I can.

desokroshan avatar Jun 06 '19 16:06 desokroshan