I am building a mobile web app using Sencha Touch 2, and I need to upload file from the app to Amazon S3, and get the file url from S3.
The PHP part is almost finished, how shall I implement my sencha program to allow user click a button, and open the file dialog, select the file and call the PHP file to upload the file to S3?
Any idea or suggestion is welcomed!!!
Finally figured it out after two days!
Yes, it is impossible to use Sencha to access Android file system and upload files.
I gave up useing Sencha’s camera function ,and used phonegap’s camera and filetransfer function, access the file system, then upload to S3.
The PHP file on server side:
Note, the file uploaded is without extension, so I need to give it an extension…
For the S3 configuration, please refer to the S3 official website for things like secretkey…