You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicasyncTask<IHttpActionResult>AddArtefact(longjobRunId){varstreamProvider=awaitthis.Request.Content.ReadAsMultipartAsync();foreach(varfileinstreamProvider.Contents){varcontent=awaitfile.ReadAsByteArrayAsync();/* Your Code here */}returnthis.Ok();}
The text was updated successfully, but these errors were encountered:
originally filed by @michaelschnyder on Apr 4, 2015 on the old repo
The jobbr server receives multiple files as multipart data.
See: https://github.com/jobbrIO/jobbr-execution-forked/blob/develop/source/Jobbr.Server.ForkedExecution/BackChannel/ForkedExecutionController.cs#L97
IEnumerable<HttpContent> parts = this.Request.Content.ReadAsMultipartAsync().Result.Contents;
The implementation is not straight forward and should be refactored to used async. Because it can block under certain situations.
It should be something like
The text was updated successfully, but these errors were encountered: