Fixed upload/file editing api.