The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/packages/rocketchat-file-upload/client/lib/fileUploadHandler.js

9 lines
292 B

fileUploadHandler = (meta, file, data) => {
var storageType = RocketChat.settings.get('FileUpload_Storage_Type');
if (storageType === 'GridFS') {
return new FileUpload.GridFS(meta, file, data);
} else if (storageType === 'AmazonS3') {
return new FileUpload.S3(meta, file, data);
}
};