Search code examples
phpzend-frameworkamazon-s3zend-rest

Zend_Rest_Controller upload file


I have no strong php or Zend background, please bear with me if I asked silly questions.

I am trying to upload an image to Amazon Web Service S3, via Zend Framework's REST controller.

Most examples i found are about Zend Form, which is not suitable in my case, as I use REST POST.

I believe the file had to be converted into stream of bytes, and send to the Zend_Rest_Controller, but I have no idea how to do.

Any solution?


Solution

  • Zend Framework has a component to handle Amazon s3 interfacing, check it out at:
    Zend Framework Amazon S3 documentation