mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-21 08:42:27 +00:00
Fix duplicate resource uploading (#382)
This commit is contained in:
parent
958ddfeab0
commit
e937f4f7cb
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class ResourcesController : ControllerBase
|
|||
|
||||
FileHelper.EnsureDirectoryCreated(assetsDirectory);
|
||||
// lbp treats code 409 as success and as an indicator that the file is already present
|
||||
if (FileHelper.ResourceExists(hash)) this.Conflict();
|
||||
if (FileHelper.ResourceExists(hash)) return this.Conflict();
|
||||
|
||||
Logger.Info($"Processing resource upload (hash: {hash})", LogArea.Resources);
|
||||
LbpFile file = new(await readFromPipeReader(this.Request.BodyReader));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue