Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Wanted to display selected file in list grid before uploading :- Custom Binary Field

    Hi Team,

    I just wanted to show selected files(one or multiple files) after choosing before uploading in list grid.
    Please Help.
    Thanks


    In below video i click on browse (choose files button) and selected some file and wanted to show that selected file in above box.

    Click image for larger version  Name:	Custombinaryfield.gif Views:	1 Size:	11.84 MB ID:	259204

    I am using below code.
    Click image for larger version  Name:	custombinary.jpg Views:	1 Size:	124.1 KB ID:	259205
    Last edited by vikashdwi; 29th Aug 2019, 04:18.

  • #2
    It appears that you're trying to set up an interface whereby
    - a user selects a file to upload
    - the selected file is added to a listGrid on the client side (so the user can see the file name but it has not yet been uploaded)
    - the can then repeat this process to populate the grid with a bunch of files
    - finally the user can hit a button to upload the full set of files.

    Building this interface is going to be difficult. The browser will need the actual upload item (natively an <input type=file...>) to submit the record to the server, so clearing it out and copying the file data into a ListGrid record on the client side isn't really an option.

    Having said that, the screenshot looks like you may be attempting to build your own version of the MultiFileItem.
    If you haven't already, we'd definitely recommend reading the uploading file overview doc here: https://www.smartclient.com/smartcli...=group..upload

    There's a demo of the MultiFileItem here:
    https://www.smartclient.com/smartcli...=multiFileItem
    In short it allows the user to select and upload a number of files, and uses the standard server side DataSource pattern to handle the upload on the back end.

    Would this meet your needs?

    Regards
    Isomorphic Software

    Comment

    Working...
    X