Hi,
I'm trying to upload multiple files using drag/drop. I think I have most of the infrastructure prepared, but I'm falling over at a certain point.
I'm using the following jQuery library for the file upload
https://github.com/blueimp/jQuery-File-Upload/wiki
And I'm hijacking the submit callback to call some APEX related stuff, using the concept @"MartinGiffyD" describes here.
Martin Giffy D'Souza on Oracle APEX: How to Send/Upload a CLOB from the Browser to APEX via AJAX
The part I'm strugging with is identifying the file data component from the blueimp library.
I've got the file name, file type, but the data either fails with
Object #<File> has no method 'substr'
or loads junk into the collection (before and after base64 conversion) - regardless of file type.
My callback is
submit: function (e, data) {loadFile(data); return false;}
function loadFile(data){
$.each(data.files, function (index, file) {
// ...
// htmldb_Get etc .
// ...
clobObj._set(file); // or variation, eg: clobObj._set(data) when not using $.each
Note the collection populates successfully if I just hardcode some text in the clobObj call.
I'd be happy with a reference to a working model sending BLOB to collection, without the blueimp library overhead.
Cheers.
Scott.