fix media dropzone
This commit is contained in:
@@ -224,6 +224,7 @@ export class UmbDropzoneManager extends UmbControllerBase {
|
||||
|
||||
if (upload.status === TemporaryFileStatus.SUCCESS) {
|
||||
// Upload successful. Create media item.
|
||||
// TODO: Use a scaffolding feature to ensure consistency. [NL]
|
||||
const preset: Partial<UmbMediaDetailModel> = {
|
||||
unique: file.unique,
|
||||
mediaType: {
|
||||
@@ -241,6 +242,8 @@ export class UmbDropzoneManager extends UmbControllerBase {
|
||||
],
|
||||
values: [
|
||||
{
|
||||
// We do not need to parse the right editorAlias here, because the server does not read it. If we need to parse it we would need to load the contentType to make this happen properly. [NL]
|
||||
editorAlias: null as any,
|
||||
alias: 'umbracoFile',
|
||||
value: { temporaryFileId: upload.temporaryUnique },
|
||||
culture: null,
|
||||
|
||||
Reference in New Issue
Block a user