mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
increase number of files that can be uploaded & limit 1 concurent
This commit is contained in:
parent
88799fc881
commit
156f646613
3 changed files with 5 additions and 4 deletions
|
@ -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--
|
||||
|
|
Loading…
Reference in a new issue