-
public interface FileTransformerFileTransformer is responsible for transforming the file before uploading it. This can be used to compress images or videos before uploading them. The transformed file will be uploaded to the CDN. The original file will not be modified.
The attachment type and MIME type are inferred from the extension of the transformed file, so a transformer that changes the file format must return a file whose extension matches the new format (e.g.
.jpgfor JPEG).
-
-
Method Summary
-
-
Method Detail
-
transform
@WorkerThread() abstract File transform(File file)
Transforms the file before uploading it. This can be used to compress images or videos before uploading them. It is safe to block
-
-
-
-