uploading media on Wix media manager as private

Hi is there any way to make images uploaded from local storage private so that only a logged in user can view them because so far images uploaded in wix media manager in visitor folders have url which can we accessed by a user who is not logged in .

https://www.wix.com/velo/reference/$w/uploadbutton/uploadfiles this upload files function doesn’t have any is Private attribute but this backend method does

import { mediaManager } from 'wix-media-backend';

export function uploadImage(buffer) {
  return mediaManager.upload(
      "mediaOptions": {
        "mimeType": "image/jpeg",
        "mediaType": "image"
      "metadataOptions": {
        "isPrivate": false,
        "isVisitorUpload": false,
        "context": {
          "someKey1": "someValue1",
          "someKey2": "someValue2"

i tried approach of creating buffer from the image url from wix media manager and pass it on as an argument to this upload() function but it doesn’t seem to working , Please let me know how to resolve this issue and also if there is a better approach to achieve this.