//Using S3.php from https://github.com/tpyo/amazon-s3-php-class. Place it in includes/helpers //Replaces Sendy's includes/create/upload.php putObject($s3->inputFile($file), $bucketName, $s3Filename, S3::ACL_PUBLIC_READ)) { $array = array( 'filelink' => 'http://'.$endpoint.'/'.$bucketName.'/'.$s3Filename ); echo stripslashes(json_encode($array)); } else exit; } else exit; ?>