View Source Uploadex.FileProcessing (Uploadex v3.0.0)

Process files in Base64

Link to this section Summary

Functions

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

Link to this section Types

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

Link to this section 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.