oops v2
This commit is contained in:
parent
723736f900
commit
a5417649b1
|
@ -243,7 +243,8 @@ impl Image {
|
|||
pub async fn create(db: &mut Connection<Db>, mut image: TempFile<'_>, user: User) -> Status<String> {
|
||||
let uuid = uuid::Uuid::new_v4().to_string();
|
||||
|
||||
// this is bad. see any of maia arson crimew's articles as to why.
|
||||
// TODO: implement checks to see if it's a png
|
||||
// not doing this is bad. see any of maia arson crimew's articles as to why.
|
||||
image.persist_to(format!("/images/{uuid}.png")).await.unwrap();
|
||||
|
||||
match db
|
||||
|
|
Loading…
Reference in New Issue