Model + Amazon S3 Upload In Form

I’m looking to create a model create form (let’s call the model S3File) that contains 3 attributes: ‘id’(PK) ‘name’(VARCHAR) and ‘file’(VARCHAR).

Basically what I’m looking to do is display a form that does the following:

  • Display ‘Name’ field

  • Display file upload form

  • Submit button

  • Upon submit display progress bar. When file is uploaded to specified S3 bucket save the model. ‘file’ attribute should contain the path to the file in the S3 server.

Does anyone have experience with this? I tried using the Yii ES3 & S3Upload plugin but to no avail.