mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 18:49:11 +08:00
file input
This commit is contained in:
parent
b60c7a5826
commit
d933ebb845
@ -72,11 +72,17 @@ const FileFromLinkOrLocal = ({
|
||||
{
|
||||
showFromLocal && (
|
||||
<Button
|
||||
className='w-full'
|
||||
className='relative w-full'
|
||||
variant='secondary-accent'
|
||||
>
|
||||
<RiUploadCloud2Line className='mr-1 w-4 h-4' />
|
||||
{t('common.fileUploader.uploadFromComputer')}
|
||||
<input
|
||||
className='absolute block inset-0 opacity-0 text-[0] w-full disabled:cursor-not-allowed cursor-pointer'
|
||||
onClick={e => ((e.target as HTMLInputElement).value = '')}
|
||||
type='file'
|
||||
onChange={() => {}}
|
||||
/>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user