added file expiration and fleshed out the API a bit
This commit is contained in:
parent
cc0aaaab94
commit
f52aa0f08b
9 changed files with 296 additions and 103 deletions
|
|
@ -30,14 +30,14 @@ use actix_web::{
|
|||
|
||||
use actix_files::HttpRange;
|
||||
|
||||
use crate::DownloadableFile;
|
||||
use crate::store::StoredFile;
|
||||
|
||||
// This is copied substantially from actix-files, with some tweaks
|
||||
|
||||
pub(crate) struct DownloadingFile {
|
||||
pub(crate) file: File,
|
||||
pub(crate) storage_path: PathBuf,
|
||||
pub(crate) info: DownloadableFile,
|
||||
pub(crate) info: StoredFile,
|
||||
}
|
||||
|
||||
impl DownloadingFile {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue