diff --git a/src/handlers/proxy.rs b/src/handlers/proxy.rs index b1bbac8..f649f55 100644 --- a/src/handlers/proxy.rs +++ b/src/handlers/proxy.rs @@ -77,7 +77,7 @@ pub async fn proxy_handler( thumbdata_save( filedata.clone(), &state, - &base_filename, + &filekey, content_type.to_string(), ) .await; @@ -112,7 +112,7 @@ pub async fn proxy_handler( content_type, ) .await; - thumbdata_save(filedata.clone(), &state, &base_filename, content_type.to_string()) + thumbdata_save(filedata.clone(), &state, &filekey, content_type.to_string()) .await; Ok(HttpResponse::Ok().content_type(content_type).body(filedata))