View Full Version : File uploading component for Sencha Touch

2 Aug 2012, 4:52 AM
Can be useful. Custom component for uploading files in Sencha Touch apps without page refresh.

Source and demo app on GitHub: https://github.com/kostysh/File-uploading-component-for-Sencha-Touch


File uploading without page refresh
Autoupload onchange
Custom styling (same to Ext.Button component styling)
File name as button badge
Android (4.0 up) browser support as regular
Google Chrome for desktop and mobile
iOS Safari browser support from version 6.0 (not tested on mobile)
Known issues:

Strange behavior of Google Chrome mobile (page reload after image selected)
Android browser for ICS crashes while large images loading (on the response phase with returnBase64: true)

20 Apr 2013, 1:29 AM
Is it support webview in android (up 4)?

22 Apr 2013, 6:18 AM
yes, this component works in webview. On my Android 4.0.3 smartphone all works fine.
If you found any errors, please open an issue on github.
At this moment only one known issue exist: attempt to load large files can cause a browser crashing (not component issue, but a memory related issue on both system - iOS & Android)

4 Jul 2013, 12:29 AM
Hi @kostysh,

This component works fine when I deploy the js files and PHP files on one server.
But I want to install the web app as a native app. If I do this, the browser would refuse the cross-origin access.
If you please tell me how to use sencha touch upload files as native app.

8 Aug 2013, 4:51 AM
It is working fine on web browser, but on mobile browser it's not working fine on (iphone & android), when we change the browser setting 'request desktop site' checkbox, then it is working fine. i want to use without change 'request desktop site' checkbox.... help me..