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

      0  

    Default [Ext.ux.UploadDialog] upload dialog extension.

    [Ext.ux.UploadDialog] upload dialog extension.


    Hi,

    just created the Upload dialog extension, any feedback is highly appreciated.



    description and download page is here at http://www.max-bazhenov.com/dev/upload-dialog.php
    Use the force - read the source.

  2. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,685
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    hi max,

    tested it short and this tool looks nice.
    but somehow it is a bit similar to jozefs file file uploader.

    what i am still missing in general by uploadtools, is the possibility, to select multiple files or even folders at once. i have not worked with it yet, but think that it is only possible with using flash or a plugin...

    when using php in the backend, it would be possible to integrate a status-bar to see, how much of a file is already submitted / still missing. im not sure, if / how it is possible in other serverside-languages, but guess it is.

    in your extension, i like the small grid-view in the dialog, which makes it possible via sorting, which file is uploaded first.

    the abort-button is not working as intended right now, i guess.
    it stops an upload after one file is completed.
    if you just upload one big file, it does nothing.


    interesting project! kind regards, tobiu

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

      0  

    Default


    Hi, tobiu,

    Quote Originally Posted by tobiu View Post
    tested it short and this tool looks nice.
    but somehow it is a bit similar to jozefs file file uploader.

    what i am still missing in general by uploadtools, is the possibility, to select multiple files or even folders at once. i have not worked with it yet, but think that it is only possible with using flash or a plugin...
    Yes you are right, but as Jozef mentioned it's unstable under FF && linux, that's why I don't use swf-upload or fancy-upload (or any other flash uploaders) right now.

    Quote Originally Posted by tobiu View Post
    when using php in the backend, it would be possible to integrate a status-bar to see, how much of a file is already submitted / still missing. im not sure, if / how it is possible in other serverside-languages, but guess it is.
    Yes I know it, but still haven't time to play with php's uploadprogress pecl extension.

    Quote Originally Posted by tobiu View Post
    in your extension, i like the small grid-view in the dialog, which makes it possible via sorting, which file is uploaded first.
    Sorry, english isn't my native, I can't understand what do you mean

    Quote Originally Posted by tobiu View Post
    the abort-button is not working as intended right now, i guess.
    it stops an upload after one file is completed.
    if you just upload one big file, it does nothing.
    It's by design actually, just don't know how to abort the hidden iframes form submit action.

    Quote Originally Posted by tobiu View Post
    interesting project! kind regards, tobiu
    Thanks for response
    Use the force - read the source.

  4. #4
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,685
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    hi max,

    the ext.ajax class has a method abort().
    have not tested it though.

    "in your extension, i like the small grid-view in the dialog, which makes it possible via sorting, which file is uploaded first."

    i meant, that your upload queue always submits the first row of the grid, then the second etc. (chronologically).

    i inserted 3 files and sorted the grid by the column filename.
    then the upload-order was different from the order, i inserted my files into the queue.

    i am not sure if the row-model of the grid support exchanging rows via drag and drop, but if so, users could complete order their files to their own upload-priority before uploading them to the server.


    kind regards, tobiu

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

      0  

    Default


    Hi, tobiu

    Quote Originally Posted by tobiu View Post
    the ext.ajax class has a method abort().
    have not tested it though.
    It doesn't abort the form submit.

    Quote Originally Posted by tobiu View Post
    "in your extension, i like the small grid-view in the dialog, which makes it possible via sorting, which file is uploaded first."

    i meant, that your upload queue always submits the first row of the grid, then the second etc. (chronologically).

    i inserted 3 files and sorted the grid by the column filename.
    then the upload-order was different from the order, i inserted my files into the queue.

    i am not sure if the row-model of the grid support exchanging rows via drag and drop, but if so, users could complete order their files to their own upload-priority before uploading them to the server.
    Ok, now I see, but this is a free feature derived from Ext.data.Store .
    Use the force - read the source.

  6. #6
    Ext User
    Join Date
    Aug 2007
    Posts
    31
    Vote Rating
    0
    Nikoms is on a distinguished road

      0  

    Thumbs up


    Hi MaximGB!

    That's (almost) exactly what I was looking for. Fantastic! (I just registered for you :p)

    I have 2 questions :

    - Is there anyway to simply limit the number of uploaded file? (1...n)

    - Is it possible to upload the file directly when I choose a file? And so, have more than 1 process if I choose 5 files... and maybe give the possibility to put the upload process dialog on background (hide it)

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

      0  

    Default


    Hi, Nikoms, thanks for response

    Quote Originally Posted by Nikoms View Post
    - Is there anyway to simply limit the number of uploaded file? (1...n)
    For now, I guess you can attach to dialogs 'filetest' event, and in handler check the dialogs store.getCount() method, and if the count is more then you need then you just need to return false from the handler, and the file will not be added to the upload queue.

    Quote Originally Posted by Nikoms View Post
    - Is it possible to upload the file directly when I choose a file? And so, have more than 1 process if I choose 5 files... and maybe give the possibility to put the upload process dialog on background (hide it)
    I didn't understand the first part of the quote, but for the second one...
    Yes I think that disabling the close button during upload process is too restrictive, and I just was to curious. I will change this behaviour to not disabling in the next version.

    p.s. And I think I know how to do the proper abort for the large files... at least Opera and FF already shows me the good results, IE as usual do on it's own way.
    Use the force - read the source.

  8. #8
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    Hi, Maxim.
    Very good extension.
    Is it possibly to display:
    Size/Total
    BSpeed
    Avg. speed
    Rem. time
    ?

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

      0  

    Default


    Quote Originally Posted by 6epcepk View Post
    Hi, Maxim.
    Very good extension.
    Is it possibly to display:
    Size/Total
    BSpeed
    Avg. speed
    Rem. time
    ?
    It's possible to implement with help of uploadprogress php pecl extension, or with one of the flash uploading components, but this are the future plans only.
    Use the force - read the source.

  10. #10
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    It's possible to implement with help of uploadprogress php pecl extension, or with one of the flash uploading components, but this are the future plans only.
    Ok, thanks.

    Extension doesn't work with ExtJs 2.0:
    PHP Code:
    Ext.ux.UploadDialog.Dialog.superclass has no properties
    [Break on this errorExt.ux.UploadDialog.Dialog.superclass.constructor.call(this,el,_7);