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

File length defined as int32 #191

Open
dkocher opened this issue Sep 15, 2021 · 1 comment
Open

File length defined as int32 #191

dkocher opened this issue Sep 15, 2021 · 1 comment
Labels

Comments

@dkocher
Copy link

dkocher commented Sep 15, 2021

Description of the issue

File sizes are defined as int32 in multiple places. This is not enough for larger file sizes.

Current content

    "/files/content": {
      "options": {
        "operationId": "options_files_content",
        "summary": "Preflight check before upload",
        "tags": [
          "Files"
        ],
        "x-box-tag": "uploads",
        "description": "Performs a check to verify that a file will be accepted by Box\nbefore you upload the entire file.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name for the file",
                    "example": "File.mp4"
                  },
                  "size": {
                    "type": "integer",
                    "format": "int32",
                    "description": "The size of the file in bytes",
                    "example": 1024
                  },

Expected content

Type should be int64.

@dkocher dkocher added the bug label Sep 15, 2021
@dkocher
Copy link
Author

dkocher commented Sep 15, 2021

This is also acknowledged with a crude comment in the documentation

The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow.

dkocher added a commit to iterate-ch/cyberduck that referenced this issue Oct 29, 2021
dkocher added a commit to iterate-ch/cyberduck that referenced this issue Nov 22, 2021
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

1 participant