Userbase

Docs : SDK : getFile

getFile lets you retrieve files uploaded via uploadFile. You can retrieve entire files at a time, or retrieve partial files to stream them for example.

    
      userbase.getFile({
        databaseName: 'example-database-name',
        fileId: 'example-id'        
      }).then(({ file }) => {
        // file object available        
      }).catch((e) => console.error(e))
  

Parameters

Result

Notes

Errors