1. #31
    Ext JS Premium Member
    Join Date
    Apr 2007
    Location
    Eindhoven
    Posts
    115
    Vote Rating
    2
    damien is on a distinguished road

      0  

    Default perfect

    perfect


    I like this upload dialog a lot! Thanx

  2. #32
    Sencha User trbs's Avatar
    Join Date
    Mar 2007
    Posts
    310
    Vote Rating
    0
    trbs is on a distinguished road

      0  

    Default


    cool nice User eXtension mate
    I'm part of the Ext Community
    Maintaining: Translations and some Examples
    Developing on: ExtJS Python Builder / Gozerbot
    Places: Ido.nl.eu.org / My ExtSamples / Trbs on Wiki / IRC

  3. #33
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    504
    Vote Rating
    5
    MaximGB is on a distinguished road

      0  

    Default


    noso, damien, trbs thanks for good response
    Use the force - read the source.

  4. #34
    Ext User
    Join Date
    Aug 2007
    Posts
    4
    Vote Rating
    0
    schambit is on a distinguished road

      0  

    Default


    first of all i'd like to say thank you very much.
    ive searched for a lot of multifile uplaod dialogs and yours seems to be the best

    but i have a problem with it:

    after i uploaded a file, the json object is returned and the state of the file that was uploaded turns into succesfully uplaoded (the green thing)
    but then the other files in the quee dont start to upload, the "uplaod button" keeps on being the "abort button" and the littel loading gif in the bottom right still shows up
    this just changes if i select another entry in the queue manually... but on your demo page everything worked just perfect.

    do u have any ideas how i could fix that?

  5. #35
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    504
    Vote Rating
    5
    MaximGB is on a distinguished road

      0  

    Default


    Do you have the last version of the UploadDialog? (I think first you should try to download the package again and check if the bug will be still in place). Then post your code here, may be you have something wrong in any of dialogs event handlers (if you have any).
    Use the force - read the source.

  6. #36
    Ext User
    Join Date
    Aug 2007
    Posts
    4
    Vote Rating
    0
    schambit is on a distinguished road

      0  

    Default


    well, i tried it with redownloading the files, but the error is still there.

    what code do u mean exactly i should post here?

    the onAjaxSuccess ?

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

      0  

    Default


    I'm not a mind reader you know .

    Show me how do you create the dialog, if you have any dialog event handlers, show me the code of handlers...

    and I also didn't understand this phrase:
    this just changes if i select another entry in the queue manually...
    Do you mean that upload starts again if you add another file in the queue? If so and if the previous queue wasn't completly uploaded - means (imo) that you have an exception in one of the dialogs event handlers. Do you use FF with Firebug installed?
    Use the force - read the source.

  8. #38
    Ext User
    Join Date
    Aug 2007
    Posts
    4
    Vote Rating
    0
    schambit is on a distinguished road

      0  

    Default


    sorry for not answering, but i had no time.

    however a mate of mine already fixed it and now its working all fine

  9. #39
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    504
    Vote Rating
    5
    MaximGB is on a distinguished road

      0  

    Default


    Was it a bug in UploadDialog? If it was, then please point me where it is.
    Use the force - read the source.

  10. #40
    Ext User
    Join Date
    Jun 2007
    Posts
    187
    Vote Rating
    1
    anjelika is on a distinguished road

      0  

    Default


    Hey, nice extension, indeed, keep up the good work.
    I have a problem with uploading files tho. The $_FILES variable does not seem to fill with the file name and the other values from the POST? statement.
    Do I need to set up anything before using this?
    I know that in plain HTML I have to set up a form containing the upload/browse button, form wich look like this:
    <form enctype="multipart/form-data" action="uploader.php" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
    Choose a file to upload: <input name="uploadedfile" type="file" /><br />
    <input type="submit" value="Upload File" />
    </form>.
    In my situation I just created a dialog and show it on the screen (as in your example), the dialog seem to access my (php) upload page according to Firebug but it does not POST anything?!
    upload.js:
    /**
    * Copyright(c) 2006-2007, FeyaSoft Inc.
    *
    * This JS is mainly used to handle action in the list
    * and create, edit, delete.
    * There includes Search function, paging function etc
    * Create/update is using pop-up dialog
    * Delete can select multiple line
    */
    Ext.onReady(function(){

    var dialog = new Ext.ux.UploadDialog.Dialog(null, {
    autoCreate: true,
    closable: true,
    collapsible: false,
    draggable: true,
    minWidth: 400,
    minHeight: 200,
    width: 400,
    height: 350,
    proxyDrag: true,
    resizable: true,
    constraintoviewport: true,
    title: 'File upload queue.',
    url: 'upload.php',
    reset_on_hide: false,
    allow_close_on_upload: true
    });
    dialog.show('my-dlg');
    });
    upload.php:
    $target_path = "uploads/";

    if (!is_dir($target_path .$_SESSION['id_comanda']))
    {
    if (!@mkdir ($target_path .$_SESSION['id_comanda'])) die ('({"success":false,"error":"Eroare la crearea directorului '.$target_path.$_SESSION[id_comanda].'"})');
    }
    $target_path .= $_SESSION['id_comanda'].'/';
    $nume_fisier = basename($_FILES['uploadedfile']['name']);

    $target_path = $target_path . basename($_FILES['uploadedfile']['name']);
    //die (basename($_FILES['uploadedfile']['name'])); <- doesn't print anything?!
    $_FILES['uploadedfile']['tmp_name'];

    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
    {
    die ('({"success":true})');
    }
    else
    {
    die ('({"success":false,"error":"A aparut o eroare, va rugam incercati din nou!"})');
    }

    Any advices will be appreciated.
    Thanks for your time and work