Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      In file api, we provide a 'private area' of user, only current user can manage files in this area.

      Use case:

      1. student uploaded an assignment to private area, then pick up this file in file picker to submit it.
      2. teacher uploaded course materials to private area, then use this files in file picker to build a course.

      Currently, we can manage all private files at files/index.php, however, it is not straightforward to access and manage.

      The user private files browser should be part of my moodle page as a block

        Gliffy Diagrams

        1. private files.bmml
          2 kB
          Dongsheng Cai
        1. private files.png
          28 kB

          Activity

          Dongsheng Cai created issue -
          Hide
          Dongsheng Cai added a comment -

          Added UI Mockup: <private files>

          Show
          Dongsheng Cai added a comment - Added UI Mockup: <private files>
          Hide
          Petr Skoda added a comment -

          hmmm, I guess we would need one more capability moodle/user:privatefiles and make it default in registered user role

          Show
          Petr Skoda added a comment - hmmm, I guess we would need one more capability moodle/user:privatefiles and make it default in registered user role
          Dongsheng Cai made changes -
          Field Original Value New Value
          Parent Issue MDL-14589 [ MDL-14589 ] MDL-19124 [ MDL-19124 ]
          Dongsheng Cai made changes -
          Description In file api, we provide a 'private area' of user, only current user can manage files in this area.

          Use case:

          1. student uploaded an assignment to private area, then pick up this file in file picker to submit it.
          2. teacher uploaded course materials to private area, then use this files in file picker to build a course.

          Currently, we can manage all private files at files/index.php, however, it is not straightforward to access and manage.

          I suggest we have a new tab in user profile page, so user can upload/manage his private files, and a new repository plugin to browse all these files.
          In file api, we provide a 'private area' of user, only current user can manage files in this area.

          Use case:

          1. student uploaded an assignment to private area, then pick up this file in file picker to submit it.
          2. teacher uploaded course materials to private area, then use this files in file picker to build a course.

          Currently, we can manage all private files at files/index.php, however, it is not straightforward to access and manage.

          The user private files browser should be part of my moodle page as a block
          Hide
          Dongsheng Cai added a comment -

          Hi, Petr

          I am working on this one, what will be the itemid in user_private area? The user id?

          Thanks

          Show
          Dongsheng Cai added a comment - Hi, Petr I am working on this one, what will be the itemid in user_private area? The user id? Thanks
          Hide
          Petr Skoda added a comment -

          The private file serving is already implemented in /userfile.php:
          area: user_privatefile
          context: user context
          itemid: 0

          Show
          Petr Skoda added a comment - The private file serving is already implemented in /userfile.php: area: user_privatefile context: user context itemid: 0
          Hide
          Dongsheng Cai added a comment -

          Hi, Petr
          I read your code, the area name is actually 'user_private'.

          I made a few changes to filemanager, now it supports read private area files now.

          Show
          Dongsheng Cai added a comment - Hi, Petr I read your code, the area name is actually 'user_private'. I made a few changes to filemanager, now it supports read private area files now.
          Dongsheng Cai made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Helen Foster added a comment -

          Hi Dongsheng, just reopening this issue as there seems to be a problem with 2 user private folders being displayed - see http://moodle.org/mod/forum/discuss.php?d=150275

          Show
          Helen Foster added a comment - Hi Dongsheng, just reopening this issue as there seems to be a problem with 2 user private folders being displayed - see http://moodle.org/mod/forum/discuss.php?d=150275
          Helen Foster made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Dongsheng Cai added a comment -

          Thanks Helen, problem fixed.

          Show
          Dongsheng Cai added a comment - Thanks Helen, problem fixed.
          Dongsheng Cai made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Helen Foster added a comment -

          Hi Dongsheng,

          Just wondering whether it's possible to set a private files size limit?

          Show
          Helen Foster added a comment - Hi Dongsheng, Just wondering whether it's possible to set a private files size limit?
          Hide
          Dongsheng Cai added a comment -

          Hi, Helen

          Are you talking about user quota or single file size limit? If it is user quota, we already have 'userquota' setting, if it is single file size limit, yes, it is possible, and what is the use case of this?

          Show
          Dongsheng Cai added a comment - Hi, Helen Are you talking about user quota or single file size limit? If it is user quota, we already have 'userquota' setting, if it is single file size limit, yes, it is possible, and what is the use case of this?
          Hide
          Helen Foster added a comment -

          Wow Dongsheng, you're very fast at answering questions on a Sunday!

          I was actually thinking of a user quota, but now you've kindly told me the name of the setting, I've searched and found it in Site admin > Security > Site policies. I was looking everywhere for it except there! Thanks a lot for your help

          Show
          Helen Foster added a comment - Wow Dongsheng, you're very fast at answering questions on a Sunday! I was actually thinking of a user quota, but now you've kindly told me the name of the setting, I've searched and found it in Site admin > Security > Site policies. I was looking everywhere for it except there! Thanks a lot for your help
          Hide
          Dongsheng Cai added a comment -

          Hi, Helen
          'userquota' setting probably needs a better home, do you know any better place to settle this setting?

          Show
          Dongsheng Cai added a comment - Hi, Helen 'userquota' setting probably needs a better home, do you know any better place to settle this setting?
          Hide
          Helen Foster added a comment -

          Hmm, I'll have a think and ask some people...

          Show
          Helen Foster added a comment - Hmm, I'll have a think and ask some people...
          Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          QA Assignee dougiamas nobody
          Martin Dougiamas made changes -
          Workflow jira [ 34355 ] MDL Workflow [ 63509 ]
          Hide
          Mary Parke added a comment -

          Hi Helen!

          I would vote for placing it within the "private files" setting that is accessed from the repository list. That way instead of just being able to "rename" private files, you can also change the userdata setting from this menu in context, too.

          Best,

          Mary

          Show
          Mary Parke added a comment - Hi Helen! I would vote for placing it within the "private files" setting that is accessed from the repository list. That way instead of just being able to "rename" private files, you can also change the userdata setting from this menu in context, too. Best, Mary
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 63509 ] MDL Full Workflow [ 92751 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: