2

I want to have members register, then be able to publish content to a channel. That works fine, however when a user accesses the file manager to upload an image they have access to all images uploaded to that channel entry.

How do I restrict each user access to only the images they upload? Thanks,

5

Here is one approach:

  1. Put the users in a member group that has the member preference "Can edit entries authored by others" set to "No"
  2. Use Channel Images or Channel Files to manage the file uploads. These add-ons have per-entry file management, so they will create separate directories per Channel entry.

This combination effectively makes it so that members (at least in the group of interest) are only able to access files they have uploaded themselves.

| improve this answer | |
  • Thanks Alex, that works great. I was looking at Channel Images but did not know it would do per-user file management. You recommendation saved my a*s. – user2254532 Jan 31 '15 at 18:37
  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. – Max Lazar Feb 2 '15 at 11:44
  • Glad it helped! It's not mandatory, but if I've answered your question you have the option to mark this answer as "accepted." See What should I do when someone answers my question? You currently have two other questions that have correct answers worth reviewing as well. – Alex Kendrick Feb 2 '15 at 15:50
  • Channel Images is a great tool, however I wanted to use it with EE's grid, or Pixel & Tonic Matrix, but it was not compatible with either. – user2254532 Feb 11 '15 at 2:22
1

I don't think ExpressionEngine will allow such behaviour out of the box although the exp_files table 'does' include a 'uploaded_by_member_id' column so it's possible that you could leverage that through a custom file select field type to limit what the user can pick from.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.