29 Jul 2011 2:39 AM #1
i am new to sencha touch . i am trying to upload an image file to the server . can you give me idea on how to proceed on it?
29 Jul 2011 5:10 AM #2
- Join Date
- Mar 2007
- St. Louis, MO
- Vote Rating
At it's current state, mobile phones cannot upload files like you can on a computer. The only way to do it is with something like PhoneGap that can access the local filesystem.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
29 Jul 2011 9:32 AM #3
Hi, you can use the Phonegap filetransfer (from local device to a server), you also need a server side script (php, asp, etc.) to upload the file:
2 Sep 2011 9:40 AM #4
10 Feb 2012 2:09 AM #5
28 Oct 2012 9:15 AM #6
5 Nov 2012 10:37 AM #7
Yes, mobile phones can upload photos / other files. Simple html <input type="file"> is processed by:
-> Android: works on all versions. Usually you can choose from photo/video/music library.
-> iOS: up to iOS 5 it way not supported (mobile Safari made intupt type="file" disabled). But from now, with iOS 6, it works. On new iPhone/iPad's clicking file input gives you list with two options: choose an existing photo or make a photo.
In sencha 1.x this is the way to do this:
If you did't do this kind of things, google about "file upload using hidden iframe".