mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
fix media mime guessing when uploading to entity
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user