diff --git a/src/addon/mod/glossary/pages/edit/edit.ts b/src/addon/mod/glossary/pages/edit/edit.ts index f685feefd..8520727b6 100644 --- a/src/addon/mod/glossary/pages/edit/edit.ts +++ b/src/addon/mod/glossary/pages/edit/edit.ts @@ -232,6 +232,9 @@ export class AddonModGlossaryEditPage implements OnInit { attach, timecreated, undefined, this.entry, !this.attachments.length, !this.glossary.allowduplicatedentries); } }).then((entryId) => { + // Delete the local files from the tmp folder. + this.uploaderProvider.clearTmpFiles(this.attachments); + if (entryId) { // Data sent to server, delete stored files (if any). this.glossaryHelper.deleteStoredFiles(this.glossary.id, this.entry.concept, timecreated); diff --git a/src/addon/mod/glossary/providers/helper.ts b/src/addon/mod/glossary/providers/helper.ts index d4cf592b1..4ec569c47 100644 --- a/src/addon/mod/glossary/providers/helper.ts +++ b/src/addon/mod/glossary/providers/helper.ts @@ -29,7 +29,7 @@ export class AddonModGlossaryHelperProvider { private glossaryOffline: AddonModGlossaryOfflineProvider) {} /** - * Delete stored attachment files for a new discussion. + * Delete stored attachment files for a new entry. * * @param {number} glossaryId Glossary ID. * @param {string} entryName The name of the entry.