1. #111
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    495
    Vote Rating
    4
    MaximGB is on a distinguished road

      0  

    Default


    DAddYE
    Not work in Safari.
    Sorry, I just don't have access to MAC.
    Use the force - read the source.

  2. #112
    Ext User
    Join Date
    Oct 2007
    Posts
    3
    Vote Rating
    0
    timSS is on a distinguished road

      0  

    Default


    Еnvironment: ext-1.1.1, FF 2.0.8, Apache2, php 5.X. regular upload works fine.

    I've read all of the thread but there is no solution for my problem:
    I'd copy-pasted the script from demo-page. Changed the 'url'.

    UI works fine. But upload doesn't work. Server side return's:

    PHP Code:
    var_dump($_FILES
    array(0){

    }

    What i figured out - somthing wrong with post:

    Request Headers
    Host ****
    User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
    Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language en-us,en;q=0.5
    Accept-Encoding gzip,deflate
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive 300
    Connection keep-alive


    There is no multipart/form-data header !

    But in HTML it does exists:

    HTML from FF Inspect:

    HTML Code:
    <form action="action.php?action=uploadfile" enctype="multipart/form-data" method="post" class="x-ux-uploaddialog-form x-grid-container x-layout-component-panel" id="ext-gen1061" style="overflow: hidden; width: 382px; height: 311px;">


    Then i checked Apache log - request is the same size as uploaded file and 'cause no multipart/form-data header, server side knows nothing about file upload.

    Any suggestions?

  3. #113
    Ext User
    Join Date
    Oct 2007
    Posts
    3
    Vote Rating
    0
    timSS is on a distinguished road

      0  

    Default


    Ok.
    My issue was solved by adding 'base_params' : { action : 'uploadfile'}.
    Now it works and i don't know how,but it seems to me like there're 2 requests sended by client to server:

    PHP Code:
    //----------------------------------
    case 'uploadfile':
     
      if (
    move_uploaded_file($_FILES['file']['tmp_name'], FILE_UPLOAD_DIR.$_FILES['file']['name'])){
       echo 
    json_encode(array("success"=>true)); 
      }else{
       echo 
    json_encode(array("success"=>false)); 
      }
       
     break;
    //---------------------------------- 
    serverside returns false, but uploaded file is on server.

  4. #114
    Ext User
    Join Date
    Oct 2007
    Posts
    3
    Vote Rating
    0
    timSS is on a distinguished road

      0  

    Default


    yes, client does sends 2 requests, apache-log:

    "POST /tss/action.php?action=uploadfile HTTP/1.1" 200 16
    "GET /tss/action.php?action=uploadfile HTTP/1.1" 200 -

    So anyone could explain - why there're 2 requests must be send to server?

    And i have to notice that GET request could be cached by client. So, is any need for it (GET)?

  5. #115
    Ext User
    Join Date
    Jul 2007
    Posts
    9
    Vote Rating
    0
    nteknetium is on a distinguished road

      0  

    Default Ext 2.0

    Ext 2.0


    Hi,

    I have a problem this extension work fine for me in Ext 1.1 but I make an application en Ext 2.0 and the extension doesn't work.

    Its a way to the extension work with Ext 2.0?
    What changes I must to do?
    I can download the Ext2 version from any site?

    Thanks,

    nTek

  6. #116
    Ext User priya.ranganathan's Avatar
    Join Date
    Oct 2007
    Posts
    7
    Vote Rating
    0
    priya.ranganathan is on a distinguished road

      0  

    Question


    Hello,
    I'm trying to use the Ext.ux.UploadDialog in my application. i was able to get a demo page working but when i try to implement the same into my application error i keep on getting the error

    PHP Code:
    missing before statement
    [url]http://localhost/.../ext/ext-all-debug.js[/url] Line 433 
    I'm new to Ext and so i'm not knowing what's wrong. can someone help me in this.
    Thanks
    --
    Priya Ranganathan

  7. #117
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    495
    Vote Rating
    4
    MaximGB is on a distinguished road

      0  

    Default


    Post here you code, for someone can help you in that.
    Use the force - read the source.

  8. #118
    Ext User
    Join Date
    Aug 2007
    Posts
    1
    Vote Rating
    0
    langkins is on a distinguished road

      0  

    Default Pls help me

    Pls help me


    hi Maxim
    thank u and your UploadDialg,it's really a nice tool.but,i got a problem when work with UploadDialog.i used it with servlet(the upload component i used is commons-fileupload),when i deployed it to the tomcat server,it can work right with firefox,but something wrong with ie6.and could not open the dialog and show me some error msg,the error info:
    "line:13
    character: 1601
    erroryntax error
    code:0"
    this problem never happened when i opend nondeployed static html page(i put the Ext.ux.UploadDialog package to the ext directory)
    i think i have got the cause ,and locate where.but i do not know how to fix.
    the problem was caused by a css,that in the "state_tpl" template.
    the code fragment as following:
    this.state_tpl = new Ext.Template(
    "<div class='x-ux-uploaddialog-state x-ux-uploaddialog-state-{state}'>*</div>"
    ).compile();

    if i remove "class='x-ux-uploaddialog-state x-ux-uploaddialog-state-{state}'", it works fine,only without the state img.and i try to define a css use style,also failed.
    i do not know why,only got this problem with boring ie,and just when a deployed in tomcat.pls help me.thank u.

  9. #119
    Ext User al_capone's Avatar
    Join Date
    Jun 2007
    Location
    Slovakia, Kosice
    Posts
    17
    Vote Rating
    0
    al_capone is on a distinguished road

      0  

    Default Good job

    Good job


    Good job MaximGB ! This is something what I need.
    Will you convert your UploadDialog to use with 2.0 Extjs?
    You wrote that Valera make it, but I can not find where download version for 2.0.

    Once more, good job!
    Jaroslav Javorsky

  10. #120
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    495
    Vote Rating
    4
    MaximGB is on a distinguished road

      0  

    Default


    langkins
    Please post your code here (how do you use the component?), or give me a link on online demo where I can see an error.
    al_capone
    I'll convert the component in the near future but don't know when exactly. I'm busy right now. I misunderstood Valera, he didn't convert UploadDialog to Ext 2.0, he is using his own solution.
    Use the force - read the source.

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