ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


How to prevent user to upload files to My Files


  • 2013-09-17 23:08:55

    How to prevent user to upload files to My Files

    Hi,

    I need help on how to prevent user (Student) to upload files to My Files workspace, and if they have uploaded some files (big files!) how do i delete them?

    Thank You

    Hafizi
    :)

  • 2013-09-19 13:32:43

    Re: How to prevent user to upload files to My Files

    There's a line in mods/_standard/file_storag/index.php that looks like the following that you can comment out to remove MyFiles.

    [php]

    <option value="2" <?php if ($owner_type == WORKSPACE_PERSONAL) { echo 'selected="selected"'; } ?>><?php echo _AT('my_files'); ?></option>

    [/php]

    You can find the files in content/file_storage/. Logged into the server's command prompt, you can run a command like "du -h" to show what space is being used, looking for the folders using excessive space. If you need to identify specific files, you'd match up the file id in the file_storage subfolders, with those listed in the "files" table in the database.

  • 2013-09-19 20:11:35

    Re: How to prevent user to upload files to My Files

    That helps.

    Thank you Greg!