1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    edorado is on a distinguished road

      0  

    Default Problem uploading multiple files

    Problem uploading multiple files


    greetings:

    I have the following problem with ext-4 application, I upload multiple images to the server, to create a function that pressing a button that creates a new named FileField photo [] to take them to the server as an array of images . The problem is that when sending data to the server only sends FileField last image that was added to the zero position of the array. It's like missing a setting that would allow me to upload multiple files to the server, or that the last element is inserted FileField which recognizes the form.

    if anyone could help me I would appreciate, I'm engaged for more than three days. Sorry de translation.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This code seems to be working to me:

    Code:
    new Ext.form.Panel({
        renderTo : document.body,
        items    : [
            {
                xtype : 'filefield',
                name  : 'file1'
            },
            {
                xtype : 'filefield',
                name  : 'file2'
            },
            {
                xtype   : 'button',
                text    : 'Submit',
                handler : function(btn) {
                    var form = btn.up('form');
    
                    form.submit({
                        url : 'data/form.php'
                    });
                }
            }
        ]
    });
    Screen Shot 2012-11-23 at 9.37.53 AM.png
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Sep 2013
    Posts
    5
    Vote Rating
    0
    ram.pekam is on a distinguished road

      0  

    Default Image Upload using Base64

    Image Upload using Base64


    I am trying to upload image to JAVAServer, Following are the details :

    I am using server : JAVA Spring with REST Services and Extjs 4.

    I need to upload image using base64 to Server.

    1. What are the best practices for uploading image to server ?

    2. How to convert image to base64 string in extjs4 ?

    3. How to submit form along with form data ?

    With this I am able to hit server but every parameter is null i.e. no data is being transferred
    var form = Ext.getCmp('member_form').getForm();


    if (form.isValid()) // Validation
    {
    // communicating with server for registering member info
    form.submit({
    url : '/my/Test',
    // standardSubmit: true,
    method : 'POST',
    waitMsg : 'Registring...',
    success : function(form, o) {
    console.log(form);
    msg('Success', 'Processed file "'
    + o.result.file
    + '" on the server');
    },
    failure : function() {
    alert('Registration failed...');
    }
    });
    }

    Please help me I am stucked at this point.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi