title: Using FileGetMimeType() with uploads to Amazon S3
body: <p>I have so far allowed users to upload images to my server and then used CF's <code>FileGetMimeType()</code> function to determine if the MIME type is valid (.e.g jpg)</p>
  
  <p>The problem is that <code>FileGetMimeType()</code> wants a full path to the file on the server to work. Amazon S3 is just a URL of where the image is stored. In order to get <code>FileGetMimeType()</code> to work, I have to first upload the image to Amazon S3 then download it again using CFHTTP and then determine the file type. This seems way less efficient than the old way.</p>
  
  <p>So why not just upload to my own server first, determine the MIME type, and then upload to S3 right? I can't do that because some of these files are going to be huge with thousands of users uploading at the same time. We're talking videos as well as images. </p>
  
  <p>Is there an efficient way to upload files to an external server i.e. Amazon S3 and then get the MIME type somehow without having to download the file all over again? Can it be done on S3's end?</p>