简体   繁体   中英

Get the attachment file size in SharePoint list items - PnP Powershell

I need to get the file size of each of the attachments in a SharePoint List using PnP Powershell scripting. I am able to get the attachments' file names, but not the file size.

For file class in CSOM, you can use the length Property to estimate the file size. PnP seems not to have property on file size.

An example here for your reference: https://www.sharepointdiary.com/2019/05/sharepoint-online-get-attachments-from-list-using-powershell.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM