mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Attachment filename was truncated to 28 characters since Meteor-Files 2.1.0. Fixed this
See also:
e3a347c432 (diff-4d4d0cea7e443590b59dddca4fc34faa6f37fbfd94a251d8d0047b8aa8ca19eeR4-R6)
This commit is contained in:
parent
f6f5c7ccf0
commit
db8e707049
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue