title: Limit Size Of Objects While Uploading To Amazon S3 Using Pre-Signed URL
body: <p>I know of limiting the upload size of an object using this method: <a href="http://doc.s3.amazonaws.com/proposals/post.html#Limiting_Uploaded_Content" rel="noreferrer">http://doc.s3.amazonaws.com/proposals/post.html#Limiting_Uploaded_Content</a></p>
  
  <p>But i would like to know how it can be done while generating a pre-signed url using S3 SDK on the server side as an IAM user.</p>
  
  <p>This Url from SDK has no such option in its parameters : <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property" rel="noreferrer">http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property</a></p>
  
  <p>Neither in this:
  <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getSignedUrl-property" rel="noreferrer">http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getSignedUrl-property</a></p>
  
  <p>Please note: I already know of this answer: <a href="https://stackoverflow.com/questions/17313695/aws-s3-pre-signed-url-content-length">AWS S3 Pre-signed URL content-length</a> and it is NOT what i am looking for.</p>