fix media dropzone

This commit is contained in:
Niels Lyngsø
2024-09-18 09:21:51 +02:00
parent 65850f653e
commit f1cd56ea20

View File

@@ -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,