Fixed storagepath for production

This commit is contained in:
Stefan Zermatten
2022-02-22 13:03:37 +02:00
parent b68637e525
commit ef8aafc1a1
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import { createS3FilesCollection } from '/imports/api/files/s3FileStorage.js';
const ArchiveCreatureFiles = createS3FilesCollection({
collectionName: 'archiveCreatureFiles',
storagePath: '/DiceCloud/archiveCreatures/',
storagePath: Meteor.isDevelopment ? '/DiceCloud/archiveCreatures/' : 'assets/app/archiveCreatures',
onBeforeUpload(file) {
// Allow upload files under 10MB, and only in json format
if (file.size > 10485760) {