View Source Uploadex.FileProcessing (Uploadex v3.1.0)

Process files in Base64

Summary

Functions

If it's in base64, decode it. Otherwise, do not try to process the file.

Types

@type processed_binary() :: %{binary: String.t(), content_type: String.t()}

Functions

Link to this function

process_binary(image_binary)

View Source
@spec process_binary(String.t()) :: {:ok, processed_binary()} | {:error, String.t()}

If it's in base64, decode it. Otherwise, do not try to process the file.