-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFile FileSize (or Length) #422
Comments
I'm hoping to be able to submit a PR at some point, but I'm fighting being able to get the unit tests to work. I can't seem to |
@DaleyKD : really appreciate you wanne help out :-) If you're in GCC then please follow what was mentioned in the other PS issue. Once you've the app setup you need to update the test configuration files to use it...that would then be something like this: "Credentials": {
"DefaultConfiguration": "MySetup",
"Configurations": {
"MySetup": {
"CredentialManager": {
"ClientId" : "<your app id>",
"TenantId" : "<your tenant id>",
"CredentialManagerName": "credman"
}
}
}
}, Alternatively you can also sign up for a free developer tenant via https://developer.microsoft.com/en-us/microsoft-365/dev-program and then you're tenant admin in a regular tenant, so the documented flow should work. If in the end you're not able to get things working then please reach out, we can have a short meeting to get you unblocked. |
Tried to fix this with #445 |
Thanks a ton @DaleyKD , just merged your PR so closing this issue. Thanks for helping out the SharePoint community. |
Category
Describe the domain model extension
In CSOM, Microsoft.SharePoint.Client.File has a property named
Length
.Model
Model: IFile
Properties: Length (or FileSize/Size)
APIs
API:
https://<tenant>.sharepoint.com/sites/<site>/_api/web/lists(guid'<listId>')/items(<listItemId>)/file
(length
property)or
API:
https://graph.microsoft.com/v1.0/sites/<siteId>/lists/<listId>/items/<itemId>/driveItem
(size
property)Additional Information
Drive Item Microsoft Graph Documentation
The text was updated successfully, but these errors were encountered: