web/satellite: fix upload buttons

Fixed upload buttons click in file browser for Safari

Change-Id: I9c6195fe231bd26eb9ce99f1f7a9d2073b8207bf
This commit is contained in:
Vitalii 2022-11-17 12:58:36 +02:00 committed by Storj Robot
parent 6fe89d5244
commit 28b4e57e9e

View File

@ -438,7 +438,7 @@ async function list(path: string): Promise<void> {
async function buttonFileUpload(): Promise<void> {
await analytics.eventTriggered(AnalyticsEvent.UPLOAD_FILE_CLICKED);
const fileInputElement = fileInput.value as HTMLInputElement;
fileInputElement.click();
fileInputElement.showPicker();
closeUploadDropdown();
}
@ -448,7 +448,7 @@ async function buttonFileUpload(): Promise<void> {
async function buttonFolderUpload(): Promise<void> {
await analytics.eventTriggered(AnalyticsEvent.UPLOAD_FOLDER_CLICKED);
const folderInputElement = folderInput.value as HTMLInputElement;
folderInputElement.click();
folderInputElement.showPicker();
closeUploadDropdown();
}