Add database ID to the file object
This commit is contained in:
parent
b133a3e31e
commit
87f6093138
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user