smart_city v2.3.0 SmartCity.Events.FileUploaded View Source

Defines the information needed to process uploaded files by components of the system including the files' type, parent identifier, and location info.

Link to this section Summary

Functions

Standardize file type definitions by deferring to the official media type of the file based on a supplied extension.

Link to this section Types

Link to this type

extension()

View Source
extension() :: String.t()
Link to this type

mime_type()

View Source
mime_type() :: String.t()
Link to this type

t()

View Source
t() :: %SmartCity.Events.FileUploaded{
  bucket: bucket(),
  dataset_id: id(),
  key: key(),
  mime_type: mime_type()
}

Link to this section Functions

Standardize file type definitions by deferring to the official media type of the file based on a supplied extension.