Title: Error replacing image
Last modified: April 5, 2023

---

# Error replacing image

 *  Resolved [florianrinnhofer](https://wordpress.org/support/users/florianrinnhofer/)
 * (@florianrinnhofer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-replacing-image/)
 * about one week ago we found out that the replacement of files is not working 
   any more. Error that is show when having the first option (“replace original”)
   selected (translated): “_the selected directory is outside of the upload directory_.
   _Due to security reasons this is forbidden._“. It used to work for 3 years. Now
   it doesn’t work in all websites of our multisite-network. Installed Version: 
   4.1.0

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-replacing-image/#post-16631540)
 * Hi florianrinnhofer,
 * If it doesn’t work in all websites of a multisite, the issue is probably coming
   from some change made on said multisite. In any case, it would be helpful if 
   you could provide us with some additional information, including:
    - **Screenshots **or a** screen recording **that show the issue in action. If
      possible, please include **relevant links** as well.
    - Your site information. Please navigate to** Tools** >** Site Health **>** 
      Info, **click on the **“Copy site info to clipboard”** button and paste the
      information in your reply.
    - Finally, is the issue occurring in more than one web browser (Chrome, Firefox,
      Edge, Safari, etc.)?
 * Thank you,
 *  Thread Starter [florianrinnhofer](https://wordpress.org/support/users/florianrinnhofer/)
 * (@florianrinnhofer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-replacing-image/#post-16632056)
 * We found the mistake. The auto-update hadn’t installed WP 6.2 version yet, it
   only happened under WP 6.1 version.
 *  Plugin Support [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-replacing-image/#post-16639363)
 * Good to hear! Have a nice Sunday.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error replacing image’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/error-replacing-image/#post-16639363)
 * Status: resolved