diff --git a/src-web/components/BinaryFileEditor.tsx b/src-web/components/BinaryFileEditor.tsx index 3df32f98..458818e4 100644 --- a/src-web/components/BinaryFileEditor.tsx +++ b/src-web/components/BinaryFileEditor.tsx @@ -36,6 +36,8 @@ export function BinaryFileEditor({ }); if (path) { onChange({ filePath: path }); + } else { + onChange({ filePath: undefined }); } }; @@ -56,7 +58,7 @@ export function BinaryFileEditor({ {filePath ?? 'Select File'} - {mimeType !== contentType && !ignoreContentType.value && ( + {filePath != null && mimeType !== contentType && !ignoreContentType.value && (
Set Content-Type header to