forked from External/greenlight
GRN2-xx: Allowed file types now matches BigBlueButton (#1966)
* Allowed file types now matches BigBlueButton * Uppercased file types are now allowed * Rubocop
This commit is contained in:
@ -418,7 +418,8 @@ class RoomsController < ApplicationController
|
||||
|
||||
# Checks if the file extension is allowed
|
||||
def valid_file_type
|
||||
Rails.configuration.allowed_file_types.split(",").include?(File.extname(room_params[:presentation].original_filename))
|
||||
Rails.configuration.allowed_file_types.split(",")
|
||||
.include?(File.extname(room_params[:presentation].original_filename.downcase))
|
||||
end
|
||||
|
||||
# Gets the room setting based on the option set in the room configuration
|
||||
|
Reference in New Issue
Block a user