• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Trimming path from uploaded filename (vvupload.rpgle)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trimming path from uploaded filename (vvupload.rpgle)

    The Valence upload example uses xtype filefield. The Sencha docs state;

    "Because there is no secure cross-browser way to programmatically set the value of a file input, the standard Field setValue method is not implemented. The getValue method will return a value that is browser-dependent; some have just the file name, some have a full path, some use a fake path."

    The result of this is that your example will upload a file to the IFS with a file name that may or may not include the path. For better browser independence might it be worth trimming the path (if one exists) from this file name before creating. This might be preferable to the alternative which is modifying the browser settings.

    Thanks
Working...
X