getFileUrl is not workin

when i send the name of the file to getfile it not return a link at all


and in back

It is an asynchronous request, so you should get a promise in the console.log().

Try putting the mediaManager request in a variable and wait for the promise to resolve.

export async function hack(fileName) {
    const responseFileName = await mediaManager.getFileUrl(fileName)
    console.log(responseFileName)
    return responseFileName
}

thank you a lot!