1. #1
    Sencha User FlaminPhoenix's Avatar
    Join Date
    May 2009
    Posts
    146
    Vote Rating
    0
    FlaminPhoenix is on a distinguished road

      0  

    Default File upload problem!

    File upload problem!


    Okay, so my server side file upload code works with a classic form tag and a input tag with type "file". But Ext 4.0 seems to have a problem. Any suggestions / help will be greatly appreciated!

    HTML Code that works fine:
    PHP Code:
    <html>
    <
    body>

    <
    form enctype="multipart/form-data" action="/newsearch/upload" method="POST">
     
    Please choose a file: <input name="uploaded" type="file" /><br />
     <
    input type="submit" value="Upload" />
     </
    form>
    </
    body>
    </
    html
    Ext 4.0 code that doesnt run well:

    PHP Code:
    this.fileUploadField Ext.create('Ext.form.field.File', {
                
    id:'file',
                
    name:'file',
                
    labelWidth 105,
                
    width 550,
                
    fieldLabel 'Select a file'
            
    });
            
    this.fileUploadForm Ext.create('Ext.form.Panel', {
                        
    border false,
                        
    url:'/newsearch/upload',
                        
    height:250,
                        
    items : [this.fileUploadField]
                    }); 
    which is inside a view. Im calling the submit() function on fileUploadForm on click of another button. What exactly am I doing wrong? Im using Ext 4.0 MVC for this.
    No one stands taller than the last man standing

  2. #2
    Sencha User FlaminPhoenix's Avatar
    Join Date
    May 2009
    Posts
    146
    Vote Rating
    0
    FlaminPhoenix is on a distinguished road

      0  

    Default


    Okay, figured out the problem! I had to put a
    PHP Code:
    name:'uploaded'
    into my file upload field config because that was what the server side code was reading... Anyways. Thanks!
    No one stands taller than the last man standing

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