From 8b6c63aa91cf8ba25555ee278d3de594f597e834 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Thu, 25 Jul 2024 17:57:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20frontend:=20opera=20did?= =?UTF-8?q?nt=20permit=20folder=20uploads=20(#630)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/frontend/src/app/components/uploads/upload-zone.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tdrive/frontend/src/app/components/uploads/upload-zone.tsx b/tdrive/frontend/src/app/components/uploads/upload-zone.tsx index 511aec9d..7255ea64 100755 --- a/tdrive/frontend/src/app/components/uploads/upload-zone.tsx +++ b/tdrive/frontend/src/app/components/uploads/upload-zone.tsx @@ -46,6 +46,12 @@ export default class UploadZone extends React.Component { this.file_input.multiple = this.props.multiple ? true : false; this.file_input.directory = this.props.directory ? true : false; this.file_input.webkitdirectory = this.props.directory ? true : false; + /* The following seems redundant with the previous, but is required for + * Opera support, as for historic reasons, the properties on the + * DOMElement don't exactly match up 1 to 1 with the attributes. + */ + if (this.props.directory) + this.file_input.setAttribute('webkitdirectory', ''); this.setCallback();