Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database error during file upload #72

Open
Andersonq17 opened this issue Jan 16, 2020 · 2 comments
Open

Database error during file upload #72

Andersonq17 opened this issue Jan 16, 2020 · 2 comments

Comments

@Andersonq17
Copy link

Hello Daniel,
I'm getting this error 'Database error during file upload' and I did the steps you described in this plug in.

any idea why this error?

here is my setup

dd1
dd2

and here is my pl/sql code:

`DECLARE
-- get files data from saved apex_collection
CURSOR l_cur_files IS
SELECT c001 AS filename,
c002 AS mime_type,
d001 AS date_created,
n001 AS file_id,
blob001 AS file_content
FROM apex_collections
WHERE collection_name = 'DROPZONE_UPLOAD';
BEGIN
-- loop over files cursor
FOR l_rec_files IN l_cur_files LOOP
-- do whatever processing is required prior to the insert into your own table
INSERT INTO DOCUMENTS (
NAME,
MIME_TYPE,
LAST_UPDATED,
BLOB_CONTENT,
TASK_ID

) VALUES (
    l_rec_files.filename,
    l_rec_files.mime_type,
    l_rec_files.date_created,
    l_rec_files.file_content,
    :P10_TASK_ID
    
);

END LOOP;
-- clear original apex collection (only if exist)
IF apex_collection.collection_exists(p_collection_name => 'DROPZONE_UPLOAD') THEN
apex_collection.delete_collection(p_collection_name => 'DROPZONE_UPLOAD');
END IF;
END;`

@ferenciso
Copy link

ferenciso commented Aug 3, 2020

tengo el mismo problema, pudiste solucionarlo?

@Thobanip6
Copy link

Did you guys find the solution for this? I'm experiencing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants