Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(file-sharing) fix resetting the state for share file input

Saúl Ibarra Corretgé75b5702a7e20
diff --git a/react/features/file-sharing/components/web/FileSharing.tsx b/react/features/file-sharing/components/web/FileSharing.tsx
index de4037a2f5..13955e3e5e 100644
--- a/react/features/file-sharing/components/web/FileSharing.tsx
+++ b/react/features/file-sharing/components/web/FileSharing.tsx
@@ -234,6 +234,7 @@ const FileSharing = () => {
const handleFileSelect = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
if (e.target.files) {
processFiles(e.target.files as FileList, store);
+ e.target.value = ''; // Reset the input value to allow re-uploading the same file
}
}, [ processFiles ]);