Skip to content

Commit

Permalink
fix contentType
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored and ggazzo committed Jan 3, 2025
1 parent 4376a2a commit 14018cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/meteor/app/file/server/file.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ class GridFS implements IRocketChatFileStore {

createWriteStream(fileName: string, contentType: string) {
const ws = this.bucket.openUploadStream(fileName, {
metadata: {
contentType,
},
contentType,
});

ws.on('close', () => {
Expand All @@ -83,6 +81,7 @@ class GridFS implements IRocketChatFileStore {

async getFileWithReadStream(fileName: string) {
const file = await this.findOne(fileName);
console.log('getFileWithReadStream', file);
if (!file) {
return;
}
Expand Down

0 comments on commit 14018cb

Please sign in to comment.