In channels you can define a default category to added entries, and I'd like to do something similar for added images.
This is a Safecracker File field (using Safecracker to upload).
Thanks for any help!
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityIn channels you can define a default category to added entries, and I'd like to do something similar for added images.
This is a Safecracker File field (using Safecracker to upload).
Thanks for any help!
I don't think, there is such a feature for assigning a default category to updated image from channel entry. Although, a category can be assigned to image in File Manager while editing it.
Your need can be fulfilled by developing an extension using the hook "entry_submission_end" which will assign a default category to uploaded image.