https://github.com/dnalchemist/micronaut-upload-with-boundary-falling
https://github.com/dnalchemist/micronaut-upload-with-boundary-falling
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnalchemist/micronaut-upload-with-boundary-falling
- Owner: DNAlchemist
- Created: 2019-05-21T14:20:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T14:21:05.000Z (about 7 years ago)
- Last Synced: 2025-02-15T09:41:27.241Z (over 1 year ago)
- Language: Java
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo file upload problem with micronaut / netty and boundary parameter
## How to reproduce
Clone this repo.
```
> ./gradlew run
> Task :compileJava
Note: Creating bean classes for 1 type elements
> Task :run
08:43:22.895 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 639ms. Server Running: http://localhost:9102
```
This is works fine:
```
> curl -X POST http://localhost:9102/deployment/create -F file=@diagram_1.dmn -H "Content-Type: multipart/form-data"
```
Add boundary to request
```
> curl -X POST http://localhost:9102/deployment/create -F file=@diagram_1.dmn -H "Content-Type: multipart/form-data;boundary=--------------------------250448360112203117589859"
```
Then we get:
```
{"_links":{"self":{"href":"/deployment/create","templated":false}},"message":"Required argument [CompletedFileUpload file] not specified","path":"/file"}
```