drive: FilesCreateCall.Media does not support file size #452
Labels
api: drive
Issues related to the Drive API API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
In the v3 API, using
Files.Create(...)
withMedia
support does not allow for specifying total file size. As a result, theProgressUpdater
function supplied always receives atotal
value of 0.Using
ReusableMedia
does support total size, but the doc states:The only way to calculate upload progress is to use the deprecated
ReusableMedia
support. The internally createdMediaInfo
does not expose thesize
value, and the only way to set it is viaNewInfoFromReusableMedia
, which is called by theFilesCreateCall.ReusableMedia
method.FilesCreateCall.Media
usesNewInfoFromMedia
, and I don't see a way to specify size.The text was updated successfully, but these errors were encountered: