Skip to content

Commit

Permalink
Workshop - Include dependencies in profile upload request
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBeekman committed Mar 3, 2024
1 parent a6e1475 commit 4d7f501
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public async Task<EntryUploadResult> CreateReleaseAsync(long entryId, IEntrySour
MultipartFormDataContent content = new();
StreamContent streamContent = new(archiveStream);
streamContent.Headers.ContentType = new MediaTypeHeaderValue("application/zip");
content.Add(JsonContent.Create(source.Dependencies.Select(d => new {PluginId = d.Plugin.Guid, FeatureId = d.Id}).ToList()), "ReleaseDependencies");
content.Add(streamContent, "file", "file.zip");

// Submit
Expand Down

0 comments on commit 4d7f501

Please sign in to comment.