mardi 31 juillet 2018

S3 creates blank transparent webp image

I have uploaded webp image into Amazon-S3. But sometimes it generates a blank transparent webp image. Content-Type:image/webp and file-size are also correct. 
Also, note that it displays from the mobile application but not in any browser. All is working fine on the local server. 
Problems occur in only with the live server. I've used the following code

$disk = Storage::disk('s3');
$original_targetFile = "videoflyer/webp_original/" . $image;
$disk->put($original_targetFile, file_get_contents($original_sourceFile), 
'public');  

S3 generates a blank image like this:  https://videoflyer.s3.us-east-2.amazonaws.com/videoflyer/webp_original/5b14e4b57da79_json_image_1528095925.webp

Anybody can help me to resolve this issue?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire