Announcement

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

    File upload

    Hi,
    I have a couple of questions on file upload.

    1. Is it possible to iterate through each file in a field defined as follows
    in my datasource. The field contains multiple (comma delimited) file names that I have selected using <ctrl> click.

    Code:
    <field name="imgfile" type="binary" customSQL="true" multiple="true"></field>
    I can get the file names by doing this but that just gives me the name and any reference to the file itself is lost.

    Code:
    form.getField("imgfile").getDisplayValue().split(",")
    I'd like to process each file individually and save them with individual DSRequest calls. Would I be able to take
    each file and assign it to a second datasource defined as follows and do a secondForm.saveData();

    Code:
    <field name="imgfile" type="binary" customSQL="true" multiple="false"></field>
    2. Is there a way to style the 'Browse' button that comes with a binary field?

    I am using SmartGwt 3.1p nightly build.

    Thanks.
Working...
X