add addResource to simpleuploads plugin.