upload and change photos with fileapi