The answer to your question
In the second, where would I find the similar code to approve photos that are uploaded?Involes a different process and several options ...