The image path is not correct after I upload the Drupal 8 site from localhost to server

I use MCE to upload the image into content and the MCE sends back the url of the image like that: src=”/foldername/sites/default/files/inline-image/imagename.jpg”

After I upload the site to server, the path of the images are not correct because it included the “foldername” which is no longer exist.

I just want to know how can I change “/foldername/sites/default/files/inline-image/imagename.jpg” to “/sites/default/files/inline-image/imagename.jpg” after I upload the site to server. I don’t want to edit the path one by one because there are too many images. Is it possible to change it in database?Or there is any other ways to do it?

Thank a lot!!

Drupal version: