Details

    • Type: Sub-task
    • Status: Closed
    • Priority: 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

          Attachments

            Activity

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

            Added UI Mockup: <private files>

            Show
            dongsheng Dongsheng Cai added a comment - Added UI Mockup: <private files>
            Hide
            skodak 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
            skodak 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 Dongsheng Cai made changes -
            Field Original Value New Value
            Parent Issue MDL-14589 [ MDL-14589 ] MDL-19124 [ MDL-19124 ]
            dongsheng 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 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 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
            skodak Petr Skoda added a comment -

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

            Show
            skodak 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 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 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 Dongsheng Cai made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            tsala 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
            tsala 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
            tsala Helen Foster made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Hide
            dongsheng Dongsheng Cai added a comment -

            Thanks Helen, problem fixed.

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

            Hi Dongsheng,

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

            Show
            tsala Helen Foster added a comment - Hi Dongsheng, Just wondering whether it's possible to set a private files size limit?
            Hide
            dongsheng 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 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
            tsala 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
            tsala 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 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 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
            tsala Helen Foster added a comment -

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

            Show
            tsala Helen Foster added a comment - Hmm, I'll have a think and ask some people...
            dougiamas Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            QA Assignee dougiamas nobody
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 34355 ] MDL Workflow [ 63509 ]
            Hide
            mparke 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
            mparke 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
            dougiamas 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:
                  Fix Release Date:
                  24/Nov/10