Using allow_upload, whats the process of modifying files before upload?

I’ve done this a few ways. Mostly its all done on the front end via hooks.

here’s some examples.

Front end UI:

callback:

JS callbacks.

In the js call back you can see how I get a signed url, send the file to a bucket, re request the same image via imagx to scale the image, then re-upload the new scaled image via a signed url, in short scaling the image via a 3rd party all done from the client side.

Not saying this a good example :joy: but its an example.

Here is a older example where I use a wasm lib to scale the image all 100% client side before I send to s3.
again this is done mostly via js and hooks. In this example I even pull out exif data from the image too.

2 Likes