Javascript multi file upload


There are a number of ways to do a multi file upload, this is a simple one that has these features:

  • each file uploaded in a seperate request,
  • checks file size before upload, and
  • update RecordDateCreated with file last modified date.


The setup

In hptrim.config:

  • add Json to serviceFeatures
  • add the following route (in routeDefaults)

The code

Copy this file to your WebDrawer root file (or a subfolder if you wish).

Written on February 5, 2016