Hi,
Last week, I sent a couple of messages in an opened topic about adding new extensions in the assignment submissions.
https://wplms.io/support/forums/topic/unable-to-add-a-new-extension-in-assignment-submission/
I thought the code you sent me was working correctly as I saw that I could add the new extension in the assigment page. But now, after publishing the first assigment, I realized that students can't upload "*.rtf" files. The extension appears in the uploading page but when a student tries to upload the files it shows the message "file type not allowed".
A curious data, when I create a new blank RTF file, and try to upload it, it doesn't show the message "file type not allowed" but it does not upload the file. The charge bar remains blank.
Could you, please, help me?
Thank you!
Please remove the previous code and try adding this code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('wplms_wplms-assignment_metabox','add_psd_metabox2');
function add_psd_metabox2($settings){
$settings[7]['options'][]=array ( 'value'=> 'RTF', 'label'=> 'RTF' );
return $settings;
}
add_filter('wplms_assignments_upload_mimes_array',function($arr){
$arr['RTF'] =array( 'application/rtf','text/rtf');
return $arr;
});
It is working now, thank you very much Alex.
For your information, the "select files" button in the uploader doesn't work in the Microsoft Edge. In the Google Chrome it works perfectly.
Yup you are correct it is not working in Ie and edge .
Adding to issue log ,will be fixing this in next update of wplms assignments .
track :
https://trello.com/c/Q0noc7y4
http://prntscr.com/he6n5p
Please check the issue ..
okay can you please create your own topic and share url of that assignment plus admin credentials there in a private reply to check this issue out
Please also contact your webhost and make sure that the finfo library is enabled on server .
Please also try uploading another sample pdf .