Add chunked uploads (Resumable curently broken)
This commit is contained in:
@@ -114,6 +114,13 @@ func RateLimitByIPDynamic(maxFn func() int, per time.Duration, burstFn func() in
|
||||
}
|
||||
|
||||
return func(c *gin.Context) {
|
||||
|
||||
// Kinda a shitty fix
|
||||
if c.FullPath() == "/api/files/upload/chunk" || c.FullPath() == "/api/files/upload/init" || c.FullPath() == "/api/files/upload/complete" {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
now := time.Now()
|
||||
cleanup(now)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user