Skip to content

Commit

Permalink
Fix OpenAPI Spec for file upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 26, 2024
1 parent eec4210 commit 527ed1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/src/Squidex/Areas/Api/Controllers/UploadModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public class UploadModel
/// <summary>
/// The alternative URL to download from.
/// </summary>
[FromForm(Name = "fileUrl")]
public string? FileUrl { get; set; }
[FromForm(Name = "url")]
public string? Url { get; set; }

/// <summary>
/// The file name if the URL is specified.
/// </summary>
[FromForm(Name = "fileName")]
public string? FileName { get; set; }
[FromForm(Name = "name")]
public string? Name { get; set; }

public Task<IAssetFile> ToFileAsync(HttpContext httpContext, App? app)
{
Expand Down

0 comments on commit 527ed1a

Please sign in to comment.