mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Updated dependencies like ostrio:files etc.
Thanks to developers of dependencies and xet7 ! Related https://github.com/veliovgroup/Meteor-Files/issues/847
This commit is contained in:
parent
c091fa5993
commit
7c619859fc
2 changed files with 11 additions and 7 deletions
|
|
@ -40,13 +40,17 @@ Attachments = new FilesCollection({
|
|||
debug: false, // Change to `true` for debugging
|
||||
collectionName: 'attachments',
|
||||
allowClientCode: true,
|
||||
/* Commenting out because this custom namingFunction did not work:
|
||||
https://github.com/veliovgroup/Meteor-Files/issues/847
|
||||
|
||||
namingFunction(opts) {
|
||||
const filenameWithoutExtension = opts.name.replace(/(.+)\..+/, "$1");
|
||||
const filenameWithoutExtension = opts.meta.name.replace(/(.+)\..+/, "$1");
|
||||
const ret = opts.meta.fileId + "-original-" + filenameWithoutExtension;
|
||||
// remove fileId from meta, it was only stored there to have this information here in the namingFunction function
|
||||
delete opts.meta.fileId;
|
||||
return ret;
|
||||
},
|
||||
*/
|
||||
storagePath() {
|
||||
const ret = fileStoreStrategyFactory.storagePath;
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue