This commit is contained in:
parent
eca05cf6c0
commit
0d9f82449c
|
@ -137,8 +137,9 @@ async fn thumbdata_save(
|
||||||
) {
|
) {
|
||||||
let state = state.clone();
|
let state = state.clone();
|
||||||
if content_type.starts_with("image") {
|
if content_type.starts_with("image") {
|
||||||
|
warn!("originalfile name: {}", original_filename);
|
||||||
let filename = original_filename.to_string();
|
let filename = original_filename.to_string();
|
||||||
let ext = match filename.split('.').last() {
|
let ext = match filename.split(".").last() {
|
||||||
Some(ext) => ext.to_string(),
|
Some(ext) => ext.to_string(),
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user