Adding new extensions in the assignment submissions

Home Forums Legacy Support Support queries Setup issues Adding new extensions in the assignment submissions

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #131678
    daammon
    Spectator
    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!
    #131779
    Anshuman Sahu
    Keymaster
    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;   });
    #131922
    daammon
    Spectator
    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.
    #132110
    Anshuman Sahu
    Keymaster
    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
    #136897
    muhadbk0
    Spectator
    http://prntscr.com/he6n5p Please check the issue ..
    #137016
    Anshuman Sahu
    Keymaster
    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
    #137017
    Anshuman Sahu
    Keymaster
    Please also contact your webhost and make sure that the finfo library is enabled on server . Please also try uploading another sample pdf .
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Adding new extensions in the assignment submissions’ is closed to new replies.