JetBrains / JetBrains/plugin-repository-rest-client

Support uploading screenshots

Open
#10 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
24
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi,

This might be wrong place to open this issue, but I'm not sure here or https://github.com/JetBrains/gradle-intellij-plugin for this issue.

I want to upload screenshots of the plugins using gradle-intellij-plugin.

## What I did

I add a method for uploading screenshots

```kotlin
@Multipart
@POST("/plugin/uploadScreenshot")
fun uploadScreenshot(@Part("userName") username: TypedString, @Part("password") password: TypedString,
@Part("pluginId") pluginId: TypedString, @Part("channel") channel: TypedString?,
@Part("file") file: TypedFile): Response // I don't think parameter name `file` is correct. It should be `files[0]`
```

This gave me 400 error saying `Parameter csrfToken must be defined`.

Here is the source code. https://github.com/shiraji/plugin-repository-rest-client/tree/upload_screenshots

## Question

Could you tell me how I can upload screenshots without csrf token? like what uploading plugin module did.

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.