generate-thumb-fix4
All checks were successful
deploy / deploy (push) Successful in 1m0s

This commit is contained in:
Untone 2024-10-22 21:14:19 +03:00
parent eca05cf6c0
commit 0d9f82449c

View File

@ -137,8 +137,9 @@ async fn thumbdata_save(
) {
let state = state.clone();
if content_type.starts_with("image") {
warn!("originalfile name: {}", original_filename);
let filename = original_filename.to_string();
let ext = match filename.split('.').last() {
let ext = match filename.split(".").last() {
Some(ext) => ext.to_string(),
None => "".to_string(),
};