Body: <p>I've moved all the assets from a local volume to a DigitalOcean space (S3 compatible) and all new entries are using that volume. I've updated all assets fields to use that new location.</p>
  <p>My problem is that all the old entries, previous to this change, are still referencing the local volume, even though the same assets are already in the cloud storage.</p>
  <p>Is there a way to force Craft to update all assets entries to the new location? When looking at the database, all the older assets are associated with the local volume. I've tried reindexing everything but that didn't solve it. Can someone please point me in the right direction?</p>
  <p>Thank you.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-12T13:47:52.353Z
Comments.Text: If string replacement will fix it, you could try using the Find and Replace utility in the admin panel.
Comments.UserDisplayName: Tammy Shipps
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-12T14:59:06.840Z
Comments.Text: Thanks. I tried that already but searching for the url string gives back 0 results :/
Comments.UserDisplayName: Frederico Leonardo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-12T16:52:15.930Z
Comments.Text: Are you using any cache tags or something that would make the templates hold onto the old URLs? If you resave an old entry in question, does it update?
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-12T17:14:50.463Z
Comments.Text: Not using any cache but yes, when I update the entry it changes the assets url, but only if I double click the asset and hit save.
Comments.UserDisplayName: Frederico Leonardo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-15T18:51:20.993Z
Comments.Text: If you referred to these images using its absolute path, search replace should do it. But moving forward refer to the step 7 of [this post](https://nystudio107.com/blog/using-aws-s3-buckets-cloudfront-distribution-with-craft-cms#step-7-configure-your-asset-volumes-in-craft-cms) you shall never have this problem again.
Comments.UserDisplayName: Leo Leoncio
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-21T13:54:08.117Z
Comments.Text: @Leoncio thank you for your input. I'll keep that in mind.
Comments.UserDisplayName: Frederico Leonardo
Tags: <assets>
Title: Changing assets location in entries after moving them to a different volume
ThreadText: # Changing assets location in entries after moving them to a different volume
  
  (Asked by: username_0 on 2021-04-12)
  
  I've moved all the assets from a local volume to a DigitalOcean space (S3 compatible) and all new entries are using that volume. I've updated all assets fields to use that new location.
  
  My problem is that all the old entries, previous to this change, are still referencing the local volume, even though the same assets are already in the cloud storage.
  
  Is there a way to force Craft to update all assets entries to the new location? When looking at the database, all the older assets are associated with the local volume. I've tried reindexing everything but that didn't solve it. Can someone please point me in the right direction?
  
  Thank you.
  
  **Tags:** assets
  
  > **Comments:**
  > **username_1**: If string replacement will fix it, you could try using the Find and Replace utility in the admin panel.  
  > **username_0**: Thanks. I tried that already but searching for the url string gives back 0 results :/  
  > **username_2**: Are you using any cache tags or something that would make the templates hold onto the old URLs? If you resave an old entry in question, does it update?  
  > **username_0**: Not using any cache but yes, when I update the entry it changes the assets url, but only if I double click the asset and hit save.  
  > **username_3**: If you referred to these images using its absolute path, search replace should do it. But moving forward refer to the step 7 of [this post](https://nystudio107.com/blog/using-aws-s3-buckets-cloudfront-distribution-with-craft-cms#step-7-configure-your-asset-volumes-in-craft-cms) you shall never have this problem again.  
  > **username_0**: @username_3 thank you for your input. I'll keep that in mind.  
  
  ---
  
  ## 0 answers
  
  