filepond-plugin-file-validate-size icon indicating copy to clipboard operation
filepond-plugin-file-validate-size copied to clipboard

possible to validate against transformed image size?

Open ilovett opened this issue 6 years ago • 1 comments

Hey! Great work on this project!

Is it possible to run the transform plugin first and show THAT filesize and validate against THAT?

Consider someone using an iPhone who takes a picture > 5MB (or > 7MB or 9MB in the future)

It would be great to have the picture already transformed when it gets validated for a max file size of say 3MB.

ilovett avatar Mar 14 '19 05:03 ilovett

As transforming the files on the client gives you some control over the output size, I would simply not validate the size. Would that work in your situation?

To give a bit of insight, transforming the file on the client is quite taxing on the CPU so currently the clientside transform is only done right before uploading the file.

rikschennink avatar Mar 14 '19 06:03 rikschennink