Meteor files 2.2.1 fixes + attachment view#4638
Conversation
| 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 |
There was a problem hiding this comment.
like an option to overwrite and pass your own sanitize method into the FilesCollection constructor
There was a problem hiding this comment.
Yes, it would be very nice. Also new feature for checking uploaded attachments for viruses etc would expect filenames to be sanitized:
There was a problem hiding this comment.
There is also WeKan setting to validate attachment by file size and type:
There was a problem hiding this comment.
What do you think, would that sanitize method of FilesCollection constructor be better?
There was a problem hiding this comment.
@xet7 @dr-dimitru
That would be great to have additional options at config variable of FilesCollection constructor
@dr-dimitru
Thank you very much for your great framework, without it, it would be much more diffucult or impossible to make all this features in Wekan !
|
See example and recommended usage here |
|
@dr-dimitru |
|
Is this related to this issue as well? Some users cant see the cover attachments. |
|
@gerroon |
|
Attachment view is related to bringing back swipebox, so when clicking attachment bitmap image PNG/JPG/GIF etc, it opens to fullscreen view of bitmap image. Not seeing attachments is #4644 , it's because some attachment migrations from CollectionFS to Meteor-Files are incomplete, attachments have wrong URLs, so they are not visible. Attachments are still at MongoDB database, and can be viewed with nosqlbooster. |
fixes #4629