add other format for vector
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user