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

14 lines
389 B

/* globals FileUploadBase, UploadFS, fileUploadHandler:true */
/* exported fileUploadHandler */
fileUploadHandler = (directive, meta, file) => {
const storageType = RocketChat.settings.get('FileUpload_Storage_Type');
const storeName = `${ storageType }:${ directive }`;
const store = UploadFS.getStore(storeName);
if (store) {
return new FileUploadBase(store, meta, file);
}
};