file - php file_exists doesnt work when working with AWS PHP SDK -
i'm using aws php sdk object s3 bucket.
when in file system files exist function file_exist return false.
if run script again find file.
$result = $client->getobject(array( 'bucket' => "uploads/$id", 'key' => $file, 'saveas' => "somepath/$id/$file" )); echo json_encode(file_exists("somepath/$id/$file"));
this return false if run script again , manually inserting url return true.
can while script still running can't file? (maybe timing issue?)
thx
the method looking file_exists, not file_exist
echo json_encode(file_exists("somepath/$id/$file"));
Comments
Post a Comment