permissions userphotos "an unknown error occurred"
Changing the userphotos folder's owner to be the same as the user:group Apache was running as solved the issue.  i.e.

chown -R www-data:www-data userphotos