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,

2 Answers 2

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.

4
  • 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. Jan 31, 2015 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, 2015 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, 2015 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. Feb 11, 2015 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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