Add function to upload a plugin