found and amended bug in rest controller that was preventing photo upload