|
@@ -76,6 +76,10 @@ Attachments = new FilesCollection({
|
|
|
// remove fileId from meta, it was only stored there to have this information here in the namingFunction function
|
|
|
return ret;
|
|
|
},
|
|
|
+ sanitize(str, max, replacement) {
|
|
|
+ // keep the original filename
|
|
|
+ return str;
|
|
|
+ },
|
|
|
storagePath() {
|
|
|
const ret = fileStoreStrategyFactory.storagePath;
|
|
|
return ret;
|
|
@@ -141,9 +145,6 @@ if (Meteor.isServer) {
|
|
|
|
|
|
const fileObj = Attachments.findOne({_id: fileObjId});
|
|
|
moveToStorage(fileObj, storageDestination, fileStoreStrategyFactory);
|
|
|
-
|
|
|
- // since Meteor-Files 2.1.0 the filename is truncated to 28 characters, so rename the file after upload to the right filename back
|
|
|
- rename(fileObj, fileObj.name, fileStoreStrategyFactory);
|
|
|
},
|
|
|
renameAttachment(fileObjId, newName) {
|
|
|
check(fileObjId, String);
|