Handling file uploads with Restler -


what best practice implement file uploads using restler framework?

i have api call file save in cdn , return cdn file url caller. best way implement it?

file upload cdn using our api

this requires 2 steps, first file on api server.

  1. add uploadformat supported formats
  2. adjust static properties of uploadformat suit need
  3. from api method use $_files , move_uploaded_file file desired folder. step common php upload process.

now have file on server

  1. upload cdn. can use means provided cdn. can ftp or using sdk upload
  2. construct cdn url , return client

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -