You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to limit the rights of a delegated domain to the file size?
For example, I want to give the client the opportunity to upload a file of no more than 50MB.
// Create a delegation for a specific DID
const audience = DID.parse(did)
const abilities = ['space/blob/add', 'space/index/add', 'filecoin/offer', 'upload/add']
const expiration = Math.floor(Date.now() / 1000) + (60 * 60 * 24) // 24 hours from now
const delegation = await client.createDelegation(audience, abilities, { expiration })
The text was updated successfully, but these errors were encountered:
Is it possible to limit the rights of a delegated domain to the file size?
For example, I want to give the client the opportunity to upload a file of no more than 50MB.
The text was updated successfully, but these errors were encountered: