Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.68 KB

File metadata and controls

73 lines (55 loc) · 2.68 KB
author spgraph-docs-team
description Represents information for an iterative process to upload large files to OneDrive, OneDrive for work or school, or SharePoint document libraries, or as file attachments to Outlook event and message objects.
title uploadSession resource type
ms.localizationpriority medium
doc_type resourcePageType
ms.subservice non-product-specific
ms.date 07/23/2024

uploadSession resource type

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Represents information for an iterative process to upload large files to:

  • OneDrive
  • OneDrive for work or school
  • SharePoint document libraries
  • Outlook event and message items as attachments
  • Universal Print printDocument items

Properties

Property Type Description
expirationDateTime DateTimeOffset The date and time in UTC that the upload session expires. The complete file must be uploaded before this expiration time is reached. Each fragment uploaded during the session extends the expiration time.
nextExpectedRanges String collection When uploading files to document libraries, this property is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, "{start}-{end}" (for example "0-26" to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value "{start}", the location in the file where the next upload should begin.
uploadUrl String The URL endpoint that accepts PUT requests for byte ranges of the file.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "uploadUrl": "String",
  "expirationDateTime": "String (timestamp)",
  "nextExpectedRanges": ["String"]
}

Related content