Image Upload #1

Merged
cameron merged 7 commits from feature/image-upload into master 2020-10-17 23:25:52 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit f52ad9e3b6 - Show all commits

View File

@@ -32,6 +32,7 @@ fn is_image_or_video(path: &Path) -> bool {
|| extension == "jpeg"
|| extension == "mp4"
|| extension == "mov"
|| extension == "nef"
}
pub fn is_valid_path(path: &str) -> Option<PathBuf> {

View File

@@ -278,7 +278,7 @@ async fn create_thumbnails() {
generate_video_thumbnail(entry.path(), &thumb_path);
false
} else {
ext == "jpg" || ext == "jpeg" || ext == "png"
ext == "jpg" || ext == "jpeg" || ext == "png" || ext == "nef"
}
} else {
false