Added file extension validation to `AddFileBox`