Compare commits
21 Commits
ef057eca66
...
728393972a
Author | SHA1 | Date |
---|---|---|
Savanni D'Gerinel | 728393972a | |
Savanni D'Gerinel | cd8c411d09 | |
Savanni D'Gerinel | d76a824987 | |
Savanni D'Gerinel | 436b0c3a0d | |
Savanni D'Gerinel | 672e5aeaa1 | |
Savanni D'Gerinel | 79219793cf | |
Savanni D'Gerinel | e30bd1e77b | |
Savanni D'Gerinel | 88510e489e | |
Savanni D'Gerinel | 021fea819a | |
Savanni D'Gerinel | b07e55f126 | |
Savanni D'Gerinel | e87589705d | |
Savanni D'Gerinel | 2fbbb4cf15 | |
Savanni D'Gerinel | 0a219aebd5 | |
Savanni D'Gerinel | 8766692781 | |
Savanni D'Gerinel | d7a810c50b | |
Savanni D'Gerinel | 598e9a01f8 | |
Savanni D'Gerinel | f1204faa5e | |
Savanni D'Gerinel | f1f4afc65a | |
Savanni D'Gerinel | b373f1ea59 | |
Savanni D'Gerinel | 2a3611dd46 | |
Savanni D'Gerinel | 94e74abd1d |
|
@ -16,8 +16,6 @@ mod handlers;
|
||||||
mod html;
|
mod html;
|
||||||
mod pages;
|
mod pages;
|
||||||
|
|
||||||
const MAX_UPLOAD: u64 = 15 * 1024 * 1024;
|
|
||||||
|
|
||||||
pub use file_service::{
|
pub use file_service::{
|
||||||
AuthDB, AuthError, AuthToken, FileHandle, FileId, FileInfo, ReadFileError, SessionToken, Store,
|
AuthDB, AuthError, AuthToken, FileHandle, FileId, FileInfo, ReadFileError, SessionToken, Store,
|
||||||
Username, WriteFileError,
|
Username, WriteFileError,
|
||||||
|
@ -129,7 +127,7 @@ pub async fn main() {
|
||||||
.and(warp::post())
|
.and(warp::post())
|
||||||
.and(with_app(app.clone()))
|
.and(with_app(app.clone()))
|
||||||
.and(with_session())
|
.and(with_session())
|
||||||
.and(warp::multipart::form().max_length(MAX_UPLOAD))
|
.and(warp::multipart::form())
|
||||||
.then(handle_upload);
|
.then(handle_upload);
|
||||||
|
|
||||||
let thumbnail = warp::path!(String / "tn")
|
let thumbnail = warp::path!(String / "tn")
|
||||||
|
|
Loading…
Reference in New Issue