finalize upload_file component. fix get_grid_.. functions.