add other format for vector

This commit is contained in:
2026-03-17 00:03:01 +01:00
parent 30e69ccbb3
commit 69349a8788
5 changed files with 17 additions and 6 deletions

View File

@@ -29,12 +29,9 @@ export const PREFIX_UPLOAD_STREAM = "/upload-stream";
export const FORM_DATA_FILES = "files";
export const TYPE_WINDOW_UNDEFINED = "undefined";
export const TOKEN_UNDEFINED = "undefined";
export const MAX_FILE_SIZE_KB = 10;
export const MAX_FILE_SIZE_KB = 2048;
export const MAX_FILES_TO_UPLOAD = 3;
export const DEFAULT_ERROR_STATUS = 500;
export const FULFILLED_BUT_NOT_SUCCESS_ERROR_STATUS = 999;
export const UNKNOWN_ERROR_AFTER_FULFILLED_QUERY =
"Unknown error after fulfilled query";
export const UNKNOWN_ERROR = "Unknown error";
export const STATUS_UNAUTHORIZED = "unauthorized";
export const HTTP_STATUS_UNAUTHORIZED_CODE = 401;

View File

@@ -28,7 +28,7 @@ const FileSelector = ({ disabled, onFilesChange }) => {
<input
ref={fileInputRef}
type="file"
accept=".txt"
accept=".txt,.pdf,.docx,.doc,.md,.rtf,.html"
multiple
style={{ display: "none" }}
onChange={onFilesChange}