creating a webservice that accepts a file (Stream) doesnt want other params

前端 未结 6 1443
梦毁少年i
梦毁少年i 2021-01-13 22:50

I have a File i want to upload to a Webservice, but it needs additional params, so I create some hidden fields with the associated name:value pairs to get pushed to the serv

6条回答
  •  不知归路
    2021-01-13 23:01

    If the string result parameter on your NewImage method is some kind of unique identifier, you could create a second method called something like NewImageAttributes which accepts the extra data, along with the unique identifier, and then you could tie the data together again in your service.

    Of course, this would mean two calls to the service, but it may solve your issue.

提交回复
热议问题