mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 22:56:30 +01:00
Tested
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||
using Microsoft.AspNetCore.StaticFiles;
|
||||
@@ -58,6 +59,8 @@ namespace VoidCat.Controllers
|
||||
[HttpPost]
|
||||
[DisableRequestSizeLimit]
|
||||
[DisableFormValueModelBinding]
|
||||
[Authorize(AuthenticationSchemes = "Bearer,Nostr")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> UploadFile([FromQuery] bool cli = false)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user