     scriptBase: "//ucarecdn.com/widget/#{uploadcare.version}/uploadcare/"
     debugUploads: false
 
+  constraints = 
+    multipleMax:
+      min: 0
+      max: 1000
+
   presets =
     tabs:
       all: 'file camera url facebook gdrive gphotos dropbox instagram evernote flickr skydrive box vk huddle'

      'multipartMaxAttempts'
      'parallelDirectUploads'
    ])

    if settings.crop != false and not $.isArray(settings.crop)
      if /^(disabled?|false|null)$/i.test(settings.crop)

      settings[key] = parseInt(settings[key])
    settings

  constrainOptions = (settings, constraints) ->
    for key, {min, max} of constraints when settings[key]?
      settings[key] = Math.min(Math.max(settings[key], min), max);
    settings

  parseCrop = (val) ->
    reRatio = /^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i
    ratio = reRatio.exec($.trim(val.toLowerCase())) or []
