PDA

View Full Version : File Upload



napierski
26 Oct 2010, 1:14 AM
How can I realize a file upload form with sencha touch.
inputType: 'file' does not work well.
The form does not submit the file to the server.

Thanks Ralf

evant
26 Oct 2010, 1:17 AM
http://www.ipadforums.net/ipad-hacking/6268-uploading-files-via-safari.html

napierski
26 Oct 2010, 3:26 AM
File Upload on Safari with HTML5 and JS:
http://www.3site.eu/jstests/upload/

Ralf

Animal
26 Oct 2010, 3:55 AM
Sencha Touch implies mobile devices. iPad and iPhone cannot upload.

Obviously it works from browsers on desktops.

And if you are using Sencha Touch on a desktop, then first, Why? But second, the file upload problem is your own. File uploads are not regular HTTP params, as the API docs remind you!

napierski
26 Oct 2010, 4:18 AM
Thank you.
I am using a safari desktop browser for testing. We want do develop mobile apps with sencha touch for our B2B solution.
We need file-upload for this application.
I understand, that Apple wants to sell Apps. So HTML5 on iPad and iPhone is limited.

Ralf

evant
26 Oct 2010, 4:25 AM
Just do a normal form post then, using the standardSubmit option on the form.

napierski
26 Oct 2010, 5:01 AM
Thank you,

it works. (On my desktop Safari)
But, as I understand, it would not work on an iPhone or iPad?

Ralf

napierski
31 Dec 2012, 4:13 AM
Where is InputType for fields in touch 2 gone?
HTML5 file upload works now fine - even for new iphones.