Custom preprocessor plugin blocks upload

I created a custom preprocessor (using Jimp to rotate images), using the example code for a compressor plugin in the docs.
The preprocessing part of the code appears to work (if console logs are to believed), every step executes as expected except for the upload.

  if (rotation !== 0) {
    uppy.use(UppyRotatePlugin, { rotate: rotation });
    console.log('using rotate'); // -> 'using rotate'
  }
// console shows log statements for custom plugin's 'prepareUpload' steps
  console.log('ready to upload'); //-> 'ready to upload'
  await uppy.upload();
  console.log('and... uploaded'); // -> never happens

What am I missing?

Hello! This is most likely an issue with the plugin and not Uppy itself. If you some of the code, that would definitely help resolving this issue.

Without being able to see the code, I have a few guesses as to the problem area:

  1. A forgotten return value in part of the plugin
  2. Maybe a function or method from jimp is acting unexpectedly or not returning the proper result (try debugging the output)

I’m sure that there are many possible reasons for this, and note that these are just approximations and I can’t say anything for sure until I see some of the code

I hope this helps. Let me know if you have any further questions or problems

- Andrew