Packages

Stein.Storage contains common storage functions for our projects at SmartLogic.

Current section

Files

Jump to
stein_storage lib stein storage file_upload.ex
Raw

lib/stein/storage/file_upload.ex

defmodule Stein.Storage.FileUpload do
@moduledoc """
Processed file struct for use in uploading.
Create with `Stein.Storage.prep_file/1`
"""
@type t() :: %__MODULE__{
filename: String.t(),
extension: String.t(),
path: String.t()
}
defstruct [:filename, :extension, :path]
end