Results 1 to 8 of 8

Thread: File Upload

  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default File Upload

    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

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,915
    Vote Rating
    914
      0  
    Evan Trimboli
    Twitter - @evantrimboli

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default

    File Upload on Safari with HTML5 and JS:
    http://www.3site.eu/jstests/upload/

    Ralf

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    62
      0  

    Default

    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!
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  5. #5
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default

    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

  6. #6
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,915
    Vote Rating
    914
      0  

    Default

    Just do a normal form post then, using the standardSubmit option on the form.
    Evan Trimboli
    Twitter - @evantrimboli

  7. #7
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Thank you,

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

    Ralf

  8. #8
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default InputType

    Where is InputType for fields in touch 2 gone?
    HTML5 file upload works now fine - even for new iphones.

Similar Threads

  1. Saki - File upload - Doesn't give an absolute path of a file in FF
    By amodg in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 4 Apr 2010, 9:02 PM
  2. file upload should happen on selecting a file
    By avilanchee in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 4 Nov 2009, 2:15 AM
  3. Replies: 2
    Last Post: 23 Aug 2009, 6:18 PM
  4. can't upload single file by intput:file
    By nileshpatil in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 17 Sep 2008, 1:55 AM
  5. file upload file in an ext.window
    By anitsirc in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 10 Sep 2008, 1:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •