From 2e1b9fd29550b71011184066c9364d293248d7c1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 23 Nov 2007 14:44:49 -0600 Subject: [PATCH] MARC import: part 1 of adding support for large files Signed-off-by: Joshua Ferraro --- .../prog/en/includes/file-upload.inc | 39 ++++ .../en/lib/jquery/plugins/ajaxfileupload.js | 200 ++++++++++++++++++ .../en/modules/tools/stage-marc-import.tmpl | 30 ++- tools/upload-file-progress.pl | 59 ++++++ tools/upload-file.pl | 110 ++++++++++ 5 files changed, 433 insertions(+), 5 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc create mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js create mode 100755 tools/upload-file-progress.pl create mode 100755 tools/upload-file.pl diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc new file mode 100644 index 0000000000..d81c649212 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc @@ -0,0 +1,39 @@ + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js new file mode 100644 index 0000000000..8bb2c17236 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js @@ -0,0 +1,200 @@ + +jQuery.extend({ + + createUploadIframe: function(id, uri) + { + //create frame + var frameId = 'jUploadFrame' + id; + + if(window.ActiveXObject) { + var io = document.createElement('