fix media mime guessing when uploading to entity

This commit is contained in:
dswbx
2025-02-20 11:32:24 +01:00
parent eaa7276173
commit 94c40de011
10 changed files with 81 additions and 19 deletions

View File

@@ -119,7 +119,10 @@ export class Storage implements EmitsEvents {
}
};
if (!noEmit) {
await this.emgr.emit(new StorageEvents.FileUploadedEvent(eventData));
const result = await this.emgr.emit(new StorageEvents.FileUploadedEvent(eventData));
if (result.returned) {
return result.params;
}
}
return eventData;