Check all uploaded files via "GoogleAIFileManager"

Hi, I used “GoogleAIFileManager” from @google/generative-ai/server” Node package to upload some media files. I was successfully able to get the URIs for it, but I am unable to open these files directly on browser, it says

{
  "error": {
    "code": 403,
    "message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",
    "status": "PERMISSION_DENIED"
  }
}

Which makes sense, since it was uploaded via using my secret key. But is there any UI dashboard where I can quickly look up all the uploaded files ?

Welcome to the forums!

The short answer is no - AI Studio doesn’t let you browse what you currently have in the Files API.

Thee Files API does allow you to list this, however. So it is possible to write your own code to do this.

BUT… keep in mind that you can only get the metadata. You can’t get the actual media itself once you have uploaded the file.

1 Like