+
+
+
diff --git a/www/upload.js b/www/upload.js
new file mode 100644
index 0000000..9ef262f
--- /dev/null
+++ b/www/upload.js
@@ -0,0 +1,107 @@
+/////////////////////////////////////////////////////////////////////////////////
+// Copyright (c) Autodesk, Inc. All rights reserved
+// Written by Cyrille Fauvel, 2015 - ADN/Developer Technical Services
+//
+// Permission to use, copy, modify, and distribute this software in
+// object code form for any purpose and without fee is hereby granted,
+// provided that the above copyright notice appears in all copies and
+// that both that copyright notice and the limited warranty and
+// restricted rights notice below appear in all supporting
+// documentation.
+//
+// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
+// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
+// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
+// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
+// UNINTERRUPTED OR ERROR FREE.
+/////////////////////////////////////////////////////////////////////////////////
+
+$(document).ready (function () {
+
+ $('#btnTranslateThisOne').click (function (evt) {
+ var files =document.getElementById ('files').files ;
+ if ( files.length == 0 )
+ return ;
+
+ $.each (files, function (key, value) {
+ var data =new FormData () ;
+ data.append (key, value) ;
+
+ $.ajax ({
+ url: 'http://' + window.location.host + '/api/file',
+ type: 'post',
+ headers: { 'x-file-name': value.name },
+ data: data,
+ cache: false,
+ //dataType: 'json',
+ processData: false, // Don't process the files
+ contentType: false, // Set content type to false as jQuery will tell the server its a query string request
+ complete: null
+ }).done (function (data) {
+ $('#msg').text (value.name + ' file uploaded on your server') ;
+ translate (data) ;
+ }).fail (function (xhr, ajaxOptions, thrownError) {
+ $('#msg').text (value.name + ' upload failed!') ;
+ }) ;
+ }) ;
+
+ }) ;
+
+ $('#btnAddThisOne').click (function (evt) {
+ var urn =$('#urn').val ().trim () ;
+ if ( urn == '' )
+ return ;
+ AddThisOne (urn) ;
+ }) ;
+
+}) ;
+
+function AddThisOne (urn) {
+ var id =urn.replace (/=+/g, '') ;
+ $('#list').append ('