mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
### What problem does this PR solve? Fix: Fixed the issue that the agent embedded page needs to be logged in #9750 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -158,6 +158,8 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
* @example disabled
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export function FileUploader(props: FileUploaderProps) {
|
||||
@ -174,6 +176,7 @@ export function FileUploader(props: FileUploaderProps) {
|
||||
multiple = false,
|
||||
disabled = false,
|
||||
className,
|
||||
description,
|
||||
...dropzoneProps
|
||||
} = props;
|
||||
const { t } = useTranslation();
|
||||
@ -302,7 +305,7 @@ export function FileUploader(props: FileUploaderProps) {
|
||||
{t('knowledgeDetails.uploadTitle')}
|
||||
</p>
|
||||
<p className="text-sm text-muted-foreground/70">
|
||||
{t('knowledgeDetails.uploadDescription')}
|
||||
{description || t('knowledgeDetails.uploadDescription')}
|
||||
{/* You can upload
|
||||
{maxFileCount > 1
|
||||
? ` ${maxFileCount === Infinity ? 'multiple' : maxFileCount}
|
||||
|
||||
Reference in New Issue
Block a user