Made the plugin uploading behaviour customizable