Reputation: 4026
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