[PLUGIN: Cloud Companion] Image compressor plugin for Better Uploader

How do you set up image compression with the Cloud Companion plugin when the Better Uploader allows different file types, such as images (PNG, JPEG) and document files (PDF, DOCX, XLSX, CSV)?

In my case, all file types are being compressed, and the document files become unopenable.

  1. Is there a way to filter the raw data from the Better Uploader so that only image files are compressed?
  2. After compression, do you use the same action, ‘Send files to cloud,’ to upload both compressed images and documents to the Bubble server?
  3. Additionally, if there are no image files to compress, how do you set up the condition for uploading files to the Bubble server, without waiting on the image compression complete event?