Dani3lSun / apex-plugin-dropzone

Oracle APEX Region Plugin - Dropzone
MIT License
72 stars 19 forks source link

Apex Collection empty #80

Open stephan0h opened 3 years ago

stephan0h commented 3 years ago

Expected behavior

SELECT c001    AS filename,
       c002    AS mime_type,
       d001    AS date_created,
       n001    AS file_id,
       dbms_lob.getlength(blob001) AS file_size
  FROM apex_collections
 WHERE collection_name = 'DROPZONE_UPLOAD';

Select yields a record per uploaded file

Actual behavior

It seems the collection is always empty.

Steps to reproduce the issue

Pretty much default settings. Query is called in event "dropzone upload completed":TRUE

Edit: it works, if "Upload Mechanism" is set to "chunked". It does not work if "Upload Mechanism" is set to "normal".

APEX version (4.2.6 / 5.0.3)

5.1.4.00.08

Used web server / version and platform (ORDS 3.0.3 / Tomcat 7 / Apache 2.4 / Linux x64)

-

Used web browser / version and platform (Chrome 48 Mac / Firefox 44 Windows)

firefox

stephan0h commented 3 years ago

Ok, debugged this a bit: If "Upload Mechanism" is set to "normal" it does not even step into ajax_dropzone() - for whatever reason. So I gather files are just not uploaded if set to "normal" ...