memorable download codes
This commit is contained in:
parent
511bd741dd
commit
86bdac20af
7 changed files with 31 additions and 10 deletions
|
@ -5,7 +5,6 @@ use actix_http::ws::{CloseReason, Item};
|
|||
use actix_web_actors::ws::{self, CloseCode};
|
||||
use bytes::Bytes;
|
||||
use log::{debug, error, info, trace};
|
||||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use time::OffsetDateTime;
|
||||
use unicode_normalization::UnicodeNormalization;
|
||||
|
@ -68,7 +67,7 @@ impl Uploader {
|
|||
pub(crate) fn new(app_data: super::AppData) -> Self {
|
||||
Self {
|
||||
writer: None,
|
||||
storage_filename: Alphanumeric.sample_string(&mut rand::thread_rng(), 8),
|
||||
storage_filename: store::gen_storage_code(),
|
||||
app_data,
|
||||
bytes_remaining: 0,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue