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?
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?
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.
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! =(
If not, would you suggest waiting for an update to wordpress?
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.
This topic has been closed to new replies.