Skip to content

Instantly share code, notes, and snippets.

@huckfinnaafb
Created January 4, 2012 16:39
Show Gist options
  • Save huckfinnaafb/1560856 to your computer and use it in GitHub Desktop.
Save huckfinnaafb/1560856 to your computer and use it in GitHub Desktop.
$image = array();
$image['acl'] = S3_ACL_PUBLIC;
$image['filename'] = '000-images/agent_photos/'.$this->logged_in_user->id.'.jpg';
$image['contentType'] = image_type_to_mime_type(exif_imagetype($_FILES['photo']['tmp_name']));
$image['body'] = file_get_contents($_FILES['photo']['tmp_name']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment