php - Amazon s3 - Call file after upload -


i'm using php script upload file amazon s3

$s3->putobjectfile($url,$bucket,$filename, s3::acl_private,array(),array("content-type" => "application/json")); 

immediately after upload, need information file , call through cloudfront see file available after minutes.

do know why , if there way sort out? there way have file available?

thank you

it available me test...

$ date;aws s3 cp foo s3://bucket/foo;date;curl -i http://dxxx.cloudfront.net/foo;date  thu aug  6 04:30:01 utc 2015 upload: ./foo s3://bucket/foo thu aug  6 04:30:02 utc 2015 http/1.1 200 ok content-type: text/html content-length: 24 connection: keep-alive date: thu, 06 aug 2015 04:30:03 gmt x-amz-version-id: null last-modified: thu, 06 aug 2015 04:30:03 gmt etag: "5089fc210a3df99a6a04fe64c929d8e7" accept-ranges: bytes server: amazons3 x-cache: miss cloudfront via: 1.1 fed2ed9d8e7c2b37559eac3b2a2386fc.cloudfront.net (cloudfront) x-amz-cf-id: geaaklcqstyadakxkbvmmsjvrfkjktd5k9woyzbhvvzufwuuhclnlq==  thu aug  6 04:30:02 utc 2015 

perhaps upload happening asynchronously , upload hadn't completed yet?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -