mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +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