(noblox.js) Upload an asset via link?

Hello! I am trying to use a function to upload an asset via a link (e.g https://cdn.discordapp.com/attachments/856756858370129930/865925010056413194/Screenshot5.png) and it’s not working!

I am pretty new to node, so I might just be being dumb.

Here is my code:

async function UploadDecal(Link) {
    const currentUser = await noblox.setCookie("_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_uwu") 
    console.log(`Logged in as ${currentUser.UserName} [${currentUser.UserID}]`)

    noblox.uploadItem("A cool decal.", 13, fs.createReadStream(Link))
}

aaaaand it errors on the uploadItem line.

Output:

(I am using replit)

Thank you in advance!

2 Likes

The problem is beacuse the file (from the URL) can’t be accessed.


This happens when I try to acces the file.

1 Like

Not sure if this is what you mean?

If not, how can I fix that?