Javascript multi file upload

Overview

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.

Tutorial

The setup

In hptrim.config:

  • add Json to serviceFeatures
  • add the following route (in routeDefaults)
<add
   name="Record"
   model="Record" 
/>

The code

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

Written on February 5, 2016