increase number of files that can be uploaded & limit 1 concurent

This commit is contained in:
Henry Oswald 2015-12-07 16:50:09 +00:00
parent 88799fc881
commit 156f646613
3 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -126,7 +126,7 @@ define [
$scope.onUpload = () ->
uploadCount++
$scope.max_files = 20
$scope.max_files = 40
$scope.onComplete = (error, name, response) ->
$timeout (() ->
uploadCount--