Progress on storing user images

This commit is contained in:
Stefan Zermatten
2022-04-25 16:16:17 +02:00
parent 6b724cf365
commit 3e97baaaaa
10 changed files with 532 additions and 33 deletions

View File

@@ -47,6 +47,7 @@ if (Meteor.isServer && Meteor.settings.useS3) {
collectionName,
storagePath,
onBeforeUpload,
onAfterUpload,
debug = Meteor.isProduction,
allowClientCode = false,
}){
@@ -54,7 +55,10 @@ if (Meteor.isServer && Meteor.settings.useS3) {
collectionName,
storagePath,
onBeforeUpload,
onAfterUpload(fileRef){
onAfterUpload(fileRef) {
// Call the provided afterUpload hook first
onAfterUpload(fileRef);
// Start moving files to AWS:S3
// after fully received by the Meteor server