jeudi 4 juin 2015

amazon s3 server invalid image upload error

I am trying to upload images using this php code on amazon s3 server.After upload when i go to the server I click the image and it says Invalid image. This is the following code

<?php

require 's3.php';

$s3 = new S3('AKIAIPNUAIAJS27NHO3A','E0xdZ9NkWUslcFTJB6vlwXm8vaqvNlt1nFyKGy5u');

S3::PutObject('.im...jpg','discvr','.im...jpg',S3::ACL_PUBLIC_READ,array(),array    (),S3::STORAGE_CLASS_STANDARD);
?>




Aucun commentaire:

Enregistrer un commentaire