Hi @Julien Anid ,
According to my research and testing, there is currently no way to automatically hide New and Upload button if the library exceeded 30k files and show a alert .As a workaround ,when the number of files reaches 30k, you can manually add JSON in the library to hide the New and Upload button. You can refer to the following steps:
1.Go to the library, click Format current view (As shown in the screenshot)
2.Click Advanced mode
3.Copy the following JSON and paste in Format view:
{
"commandBarProps" : {
"commands": [
{
"key": "new",
"hide": true
},
{
"key": "upload",
"hide": true
}
]
}
}
4. Click Save , the New and Upload button will be hidden.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
]