You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using the image plugin and planning to compress the image before uploading. I'm trying with image.beforeUpload method but it seems I cannot change the passed in files. How can I do this?
this.options.events = {
"image.beforeUpload": (files) => {
const compressedFiles = this.myImageCompressor((files);
// I get size reduced files assigned to compressedFiles here
return compressedFiles; // Froala uploads the original uncompressed files.
}
};
The text was updated successfully, but these errors were encountered:
Im using the image plugin and planning to compress the image before uploading. I'm trying with image.beforeUpload method but it seems I cannot change the passed in files. How can I do this?
this.options.events = {
"image.beforeUpload": (files) => {
const compressedFiles = this.myImageCompressor((files);
// I get size reduced files assigned to compressedFiles here
return compressedFiles; // Froala uploads the original uncompressed files.
}
};
The text was updated successfully, but these errors were encountered: