upload and refresh files