Skip to content
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

Can't upload files larger than 2GB #1

Closed
k0ylass opened this issue Aug 3, 2017 · 1 comment
Closed

Can't upload files larger than 2GB #1

k0ylass opened this issue Aug 3, 2017 · 1 comment
Assignees
Labels

Comments

@k0ylass
Copy link

k0ylass commented Aug 3, 2017

This is the error thrown when uploading files over 2GB:

Set-GDriveItemContent : System.Management.Automation.MethodException: Cannot convert argument "val2", with value: "7325106436", for "Min" to type "System.Int32": "Cannot convert value "7325106436" to type "System.Int32". Error: "Value was either too large or too
small for an Int32."" ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "7325106436" to type "System.Int32". Error: "Value was either too large or too small for an Int32." ---> System.OverflowException: Value was either too large or too
small for an Int32.
at System.Convert.ToInt32(Int64 value)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Management.Automation.LanguagePrimitives.ConvertNumeric(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.ConvertNumeric(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at CallSite.Target(Closure , CallSite , Type , Object , Object )
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at Set-GDriveItemContent(Closure , FunctionContext )
At C:\windows\system32\windowspowershell\v1.0\Modules\GMGoogleDrive-master\GMGoogleDrive\Public\Add-GDriveItem.ps1:97 char:5

  • Set-GDriveItemContent @PSBoundParameters
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-GDriveItemContent
MVKozlov added a commit that referenced this issue Aug 3, 2017
@MVKozlov
Copy link
Owner

MVKozlov commented Aug 3, 2017

Thanks for your feedback. Please test latest commit

@MVKozlov MVKozlov self-assigned this Aug 3, 2017
@MVKozlov MVKozlov added the bug label Aug 3, 2017
MVKozlov pushed a commit that referenced this issue Nov 23, 2023
Add RSA Private key loaders and JWT generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants