Interface FileTransformer

  • All Implemented Interfaces:

    
    public interface FileTransformer
    
                        

    FileTransformer 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract File transform(File file) Transforms the file before uploading it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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

        Returns:

        The transformed file.