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

Missing icon and gallery endpoints #76

Open
Foorack opened this issue Sep 25, 2021 · 5 comments
Open

Missing icon and gallery endpoints #76

Foorack opened this issue Sep 25, 2021 · 5 comments
Labels
Priority: Medium Normal priority Type: Enhancement This will **improve** existing or **add** something new

Comments

@Foorack
Copy link
Member

Foorack commented Sep 25, 2021

No description provided.

@Foorack Foorack added Priority: Medium Normal priority Type: Undocumented Endpoint Wow! This is new! This is unchartered terrirory and is only recommended by experienced comitters labels Sep 25, 2021
@Foorack
Copy link
Member Author

Foorack commented Nov 10, 2021

POST /icon

bild

Image is not resized by the API. That needs to be done client-side before upload.
This is essentially just a shortcut for the File API, except with some limitations:

  • Always has an attached tag that is not possible to modify.
  • Not possible to do multipart upload.

Although this upload skips the "delta" and "signature" FileData's of the resulting FileVersion object.

POST /gallery

Works exactly the same as /icon, except that the tag is "gallery" instead of "icon".

@Foorack Foorack added Type: Enhancement This will **improve** existing or **add** something new and removed Type: Undocumented Endpoint Wow! This is new! This is unchartered terrirory and is only recommended by experienced comitters labels Nov 10, 2021
@Foorack
Copy link
Member Author

Foorack commented Nov 10, 2021

In case of trying to upload without VRC+:
bild

@jellejurre
Copy link
Contributor

jellejurre commented Oct 7, 2024

Getting

{
    "error": {
        "message": "Application error",
        "status_code": 500
    }
}

when trying to do this. When you say resizing has to be done client side, do you know what the required size is?

@Hackebein
Copy link
Contributor

min: 64x64, max: 2048x2048

@jellejurre
Copy link
Contributor

jellejurre commented Oct 7, 2024

@Hackebein can you get this endpoint to work? (if you dont mind trying of course)

On the site icon and gallery images are just uploaded using the file image endpoint I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium Normal priority Type: Enhancement This will **improve** existing or **add** something new
Development

No branches or pull requests

3 participants