| Copyright | (c) digitally induced GmbH 2021 |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
IHP.FileStorage.Types
Description
Synopsis
- data FileStorage
- = StaticDirStorage { }
- | S3Storage {
- connectInfo :: ConnectInfo
- bucket :: Text
- baseUrl :: Text
- data StoredFile = StoredFile {}
- data StoreFileOptions = StoreFileOptions {
- directory :: Text
- contentDisposition :: FileInfo LByteString -> IO (Maybe Text)
- preprocess :: FileInfo LByteString -> IO (FileInfo LByteString)
- fileName :: Maybe UUID
- data TemporaryDownloadUrl = TemporaryDownloadUrl {}
Documentation
data FileStorage Source #
Constructors
| StaticDirStorage | Stores files publicly visible inside the project's |
| S3Storage | Stores files inside a S3 compatible cloud storage |
Fields
| |
data StoreFileOptions Source #
Options that can be passed to storeFileWithOptions
Constructors
| StoreFileOptions | |
Fields
| |
Instances
| Default StoreFileOptions Source # | |
Defined in IHP.FileStorage.Types Methods | |
data TemporaryDownloadUrl Source #
A signed url to a file. See createTemporaryDownloadUrl
Constructors
| TemporaryDownloadUrl | |