Skip to content

Commit

Permalink
Specify application/octet-stream when uploading for bundle edition (#59)
Browse files Browse the repository at this point in the history
Edits.bundles: upload  |  Google Play Developer API  |  Google Developers
https://developers.google.com/android-publisher/api-ref/edits/bundles/upload
> This method supports an /upload URI and accepts uploaded media with the
> following characteristics:
>
>     Maximum file size: 2GB
>     Accepted Media MIME types: application/octet-stream
  • Loading branch information
akihikodaki authored and trapacska committed Oct 2, 2019
1 parent f7747f5 commit 64e6a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func main() {
}
editsExpansionfilesService := androidpublisher.NewEditsExpansionfilesService(service)
editsExpansionfilesCall := editsExpansionfilesService.Upload(configs.PackageName, appEdit.Id, versionCode, expfileType)
editsExpansionfilesCall.Media(expansionFile, googleapi.ContentType("application/vnd.android.package-archive"))
editsExpansionfilesCall.Media(expansionFile, googleapi.ContentType("application/octet-stream"))
if _, err := editsExpansionfilesCall.Do(); err != nil {
failf("Failed to upload expansion file, error: %s", err)
}
Expand Down

0 comments on commit 64e6a70

Please sign in to comment.