accept .json uploads (#880)

This commit is contained in:
Rainer authored and GitHub committed 2026-06-12 10:31:19 -06:00
1 parent 0f580f0663
commit 324faf17b3
1 file changed
+2 -1
+2 -1
View File
@@ -212,6 +212,7 @@ export default function AddImagesModal() {
'video/*': ['.mp4', '.avi', '.mov', '.mkv', '.wmv', '.m4v', '.flv'], 'video/*': ['.mp4', '.avi', '.mov', '.mkv', '.wmv', '.m4v', '.flv'],
'audio/*': ['.mp3', '.wav', '.flac', '.ogg'], 'audio/*': ['.mp3', '.wav', '.flac', '.ogg'],
'text/*': ['.txt'], 'text/*': ['.txt'],
'application/json': ['.json'],
}), }),
[], [],
); );
@@ -270,7 +271,7 @@ export default function AddImagesModal() {
{!isUploading ? ( {!isUploading ? (
<> <>
<p className="text-sm text-gray-200 text-center">Drag & drop files here or click to select</p> <p className="text-sm text-gray-200 text-center">Drag & drop files here or click to select</p>
<p className="text-xs text-gray-400 mt-1">Images, videos, or .txt supported</p> <p className="text-xs text-gray-400 mt-1">Images, videos, .txt or .json supported</p>
</> </>
) : ( ) : (
<p className="text-sm text-gray-200 text-center">Drop more files to add to queue</p> <p className="text-sm text-gray-200 text-center">Drop more files to add to queue</p>