title: FineUploader: Harvest original last modified date when uploading to Amazon S3
body: <p>I would like to send the last modified date of the uploaded file to the server. I have the javascroipt snippet to get that using FileApi (<code>$(this).fineUploaderS3('getFile', id).lastModifiedDate</code>). I would like to send this information when the <code>uploadSuccess</code>'s <code>endPoint</code> is called, but I cannot find the callback which is right for me at <a href="http://docs.fineuploader.com/api/events.html" rel="nofollow">Events | Fine Uploader documentation</a>, and I cannot find the way I could inject the data.</p>
  
  <p>These are submitted as POST parameters to my server when the upload finished to S3: <code>key</code>, <code>uuid</code>, <code>name</code>, <code>bucket</code>. I would like to inject the <code>lastModified</code> date here somehow.</p>
  
  <p>Option 2:</p>
  
  <p>Asking the Amazon S3 service about last modification date does not help directly, because the uploaded file has the current date, not the file's original date. It would be great if we could inject the information into the FineUploader->S3 communication in a way that S3 would use it for setting it's own last modified date for the uploaded file.</p>
  
  <p>Other perspective I considered:</p>
  
  <p>If I use <code>onSubmit</code> and <code>setParams</code> then I the Amazon S3 server will take it as 'x-amz-meta-lastModified'. The problem is that when I upload larger files (which is uploaded in chunks with an other dance) then I get signing error. <code>...&lt;Code&gt;SignatureDoesNotMatch&lt;/Code&gt;&lt;Message&gt;The request signature we calculated does not match the signature you provided. Check your key and signing method.&lt;/Message&gt;...</code>.</p>
  
  <p>EDIT</p>
  
  <p>The <em>Other perspective I considered</em> works. The bottleneck was the name of the custom metadata chih I used at <code>setParams</code>. It cannot contain capital letters, otherwise the signing fails. I did not find any reference documentation for it. For one I checked <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html" rel="nofollow">Object Key and Metadata - Amazon Simple Storage Service</a>. If someone could find me a reference I would include that here.</p>
  
  <p>The original question (when and how to send last modified date to the server component) remains.</p>
  
  <p>(Server is PHP.)</p>
  
  <p>EDIT2</p>
  
  <p>The <em>Option 2</em> will not work, as far my research went the "Last Modified" entry cannot be manually altered at Amazon S3.</p>