mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Re-added anonymous uploads to web UI
This commit is contained in:
parent
c701493859
commit
54376fcb1a
@ -33,6 +33,7 @@ namespace Teknik.Areas.Upload.Controllers
|
||||
public UploadController(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
|
||||
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
[TrackPageView]
|
||||
public async Task<IActionResult> Index()
|
||||
{
|
||||
@ -77,6 +78,7 @@ namespace Teknik.Areas.Upload.Controllers
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
[DisableRequestSizeLimit]
|
||||
public async Task<IActionResult> Upload([FromForm] UploadFileViewModel uploadFile)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user