WordPress.org

Ready to get started?Download WordPress

Forums

Changing/disabling Automatic Updating (5 posts)

  1. Mike
    Member
    Posted 6 years ago #

    My plugin (wp_download_monitor) contains a folder called USER_UPLOADS. Automatic updates via the plugin page are wiping this folder clean. I need a workaround to stop the contents of this folder being deleted. Ideas?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Don't put the folder into your plugin.

    Currently, there is no other way. There was discussion on wp-hackers and possibly trac about this issue, but the current state of affairs is that there is no workaround. Upgrading a plugin deletes the old plugin directory and everything in it. So make the uploads go elsewhere, like the wp-content/uploads directory.

  3. Mike
    Member
    Posted 6 years ago #

    Are you sure there is no other way? I cannot really change the folder now, just think of all the people who will lose their uploads! =(

  4. Mike
    Member
    Posted 6 years ago #

    If not, would you suggest waiting for an update to wordpress?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    No, because there's not a planned change for this that I know of.

    I'd rewrite your plugin to move people's uploads to some other place.

Topic Closed

This topic has been closed to new replies.

About this Topic