What is the best practice to implement file uploads using Restler framework?
I like to have a API call that get the file save it in CDN and return back the CDN file URL to the caller. What is the best way to implement it?
What is the best practice to implement file uploads using Restler framework?
I like to have a API call that get the file save it in CDN and return back the CDN file URL to the caller. What is the best way to implement it?
File upload to CDN using our API
This requires two steps, first is to get the file on the API server.
UploadFormatto the supported formatsUploadFormatto suit your need$_FILESandmove_uploaded_fileto get the file to the desired folder. This step is common for any php upload process.Now that you have the file on the server