From 87f60931387ec4b98c0f29bbb8ec2e42f89b3d3f Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 21 Dec 2015 22:02:43 -0500 Subject: [PATCH] Add database ID to the file object --- inc/view_attachment_functions.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index 9dd07178..44b9ffee 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -219,6 +219,9 @@ function display_dropzone_field($url) { this.on('success', function(file, response) { // The response will only be the ID of the attachment in the database outputAttachmentIdHolder(response); + + // Add the database id to the file + file['databaseId'] = response; }); this.on('removedfile', function(file) { console.log(file);