upload photo and index