Cancelado

[PHP] Fixing API to use CloudFront using AWS S3

I am currently uploading photos to AWS s3 bucket and that S3 URL is being saved in the database as shown picture below:

[url removed, login to view]

Now I just created a Cloudfront Distribution since I believe its will boost the speed of retreving images.

However, not since a Cloudfront URL is automatically generated for any object that is uploaded to my bucket, the S3 URL needs to be replaced with the Cloudfront URL when serving the images, And how to do that?

I want to do either option 1:

Like i think it can be done either by creating another column in db for the generated Cloudfront URL and pulling that, still i dont know how to do it?

or option 2: Replace the s3 URL in the obtained URL with cloudfront URL when are pulling it from database.

So what best think to do to make it work?, I need help to switch to CloudFront but still my data stored in S3 bucket OR substitute for the CloudFront URL using a string replacement function (easy, but hard-coded).

Or Whatever easier for you..

Gist of S3 uploading code:

[url removed, login to view]

Habilidades: Amazon Web Services, PHP, Arquitetura de software

Veja mais: the s3 service does not have version:, cloudfront php files, missing required client configuration options laravel, cloudfront sdk java, php cloudfront invalidation, php cloudfront client, aws sdk php cloudfront, cloudfront php example, amazon aws s3 api, whatsapp api send message using php, zend api import contacts using php, twitter tweets using php streaming api, contact using php icontact api, using aws query api net, spinner chief api use php

Acerca do Empregador:
( 79 comentários ) Kuwait, Kuwait

ID do Projeto: #14864480

3 freelancers estão ofertando em média $43 para esse trabalho

$44 USD em 1 dia
(5 Comentários)
6.1
ownmyserver

Hi, Thanks for giving me this opportunity to give you proposal for your requirement. I have reviewed your requirement and i find this quite interesting, i would like to work on this project. Relevant Skills and Experi Mais

$55 USD em 1 dia
(139 Comentários)
6.1
sgulati216

Have already done it on many websites Can fix it for you.. We are using cloudfront URL instead of S3 URL. you can also use signed URL for security purposes. At your service Sahil

$30 USD em 1 dia
(0 Comentários)
0.0