This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
Reference in New Issue
Block a user