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:
Ahmad Farhat
2020-08-04 10:35:07 -04:00
committed by GitHub
parent 35c82f9c17
commit 0710c569b7
7 changed files with 6 additions and 5 deletions

View File

@ -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