Skip to content

Commit

Permalink
fix(uploads): remove . from ext check
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 29, 2023
1 parent 52839a2 commit c79f3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/uploads.cr
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ module PlaceOS::Api
end

def allowed?(file_name, file_mime)
storage.check_file_ext(File.extname(file_name))
storage.check_file_ext(File.extname(file_name)[1..])
if mime = file_mime
storage.check_file_mime(mime)
end
Expand Down

0 comments on commit c79f3cd

Please sign in to comment.