code: function(policy, minSize, maxSize) {
              var adjustedMinSize = minSize < 0 ? 0 : minSize,
                  // Adjust a maxSize of 0 to the largest possible integer, since we must specify a high and a low in the request
                  adjustedMaxSize = maxSize <= 0 ? 9007199254740992 : maxSize;
  
              if (minSize > 0 || maxSize > 0) {
                  policy.conditions.push(["content-length-range", adjustedMinSize.toString(), adjustedMaxSize.toString()]);
              }
          }
docs: Add a condition to an existing S3 upload request policy document used to ensure AWS enforces any size
  restrictions placed on files server-side.  This is important to do, in case users mess with the client-side
  checks already in place.
  
  @param policy Policy document as an `Object`, with a `conditions` property already attached
  @param minSize Minimum acceptable size, in bytes
  @param maxSize Maximum acceptable size, in bytes (0 = unlimited)