uploading photos to temp dir