Gobliins
Gobliins

Reputation: 4026

Meteor GridFS, CollectionFS - Download URLs for Files on Meteor 2.11 / Mongo 6 result in 503 Service Unavailable

After updating Meteor from 2.10 to 2.11 which includes Mongo 6 The download URLs from Files stored in the GridFS returning

503 - Service Unavailable

URL is still the same.

Packages in use:

cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]

Collection / Store:

const storeName = 'files';
const defaultStoreOptions = {
  beforeWrite: (fileObj) => {
    if (!fileObj.isImage()) {
      return {
        type: 'application/octet-stream',
      };
    }
    return {};
  },
};

const store = new FS.Store.GridFS(storeName, {
  ...defaultStoreOptions,
});

Files = new FS.Collection('files', {
  stores: [store],
});

Upvotes: 1

Views: 26

Answers (0)

Related Questions