mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 02:30:07 +02:00
increase number of files that can be uploaded & limit 1 concurent
This commit is contained in:
@@ -13,8 +13,8 @@ module.exports =
|
||||
RateLimiterMiddlewear.rateLimit({
|
||||
endpointName: "file-upload"
|
||||
params: ["Project_id"]
|
||||
maxRequests: 100
|
||||
timeInterval: 60 * 20
|
||||
maxRequests: 200
|
||||
timeInterval: 60 * 30
|
||||
}),
|
||||
SecurityManager.requestCanModifyProject,
|
||||
ProjectUploadController.uploadFile
|
||||
|
||||
@@ -32,7 +32,7 @@ define [
|
||||
uploadButton: scope.uploadButtonText or "Upload"
|
||||
dragAreaText = scope.dragAreaText or "drag here"
|
||||
hintText = scope.hintText or ""
|
||||
|
||||
maxConnections = scope.maxConnections or 1
|
||||
onComplete = scope.onCompleteCallback or () ->
|
||||
onUpload = scope.onUploadCallback or () ->
|
||||
onError = scope.onErrorCallback or () ->
|
||||
@@ -45,6 +45,7 @@ define [
|
||||
multiple: multiple
|
||||
disabledCancelForFormUploads: true
|
||||
validation: validation
|
||||
maxConnections: maxConnections
|
||||
request:
|
||||
endpoint: endpoint
|
||||
forceMultipart: true
|
||||
|
||||
@@ -126,7 +126,7 @@ define [
|
||||
$scope.onUpload = () ->
|
||||
uploadCount++
|
||||
|
||||
$scope.max_files = 20
|
||||
$scope.max_files = 40
|
||||
$scope.onComplete = (error, name, response) ->
|
||||
$timeout (() ->
|
||||
uploadCount--
|
||||
|
||||
Reference in New Issue
Block a user