upload photo api factory