Updated plugins uploading logic.