Skip to content
Snippets Groups Projects
Unverified Commit 25d7bb1c authored by Debdut Chakraborty's avatar Debdut Chakraborty Committed by Diego Sampaio
Browse files

fix: File upload in Safari, IOS devices (#27121)

parent be008789
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
fix: unable to upload files in IOS Safari browsers
......@@ -32,11 +32,6 @@ const FileUploadAction = ({ collapsed, chatContext, disabled, ...props }: FileUp
const handleUpload = () => {
fileInputRef.current?.click();
// Simple hack for iOS aka codegueira
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
fileInputRef.current?.click();
}
};
if (collapsed) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment