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?
This requires two steps, first is to get the file on the API server.
UploadFormat
to the supported formatsUploadFormat
to suit your need$_FILES
and move_uploaded_file
to 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