Comments (3)
I'm working on a way of reproducing the issue without exposing my codebase.
from multipart-kit.
I'm having trouble re-creating this on Linux. Here's what I tried:
struct Payload: Content {
var image: File
var id: Int
}
router.post("multipart-file") { req -> Future<Response> in
return try req.content.decode(Payload.self).map { payload in
let res = req.response()
res.http.contentType = .png
res.http.body = .init(data: payload.image.data)
return res
}
}
from multipart-kit.
Not a multipart issue after all. Pretty sure it is a Foundation issue on linux with URLSession.
from multipart-kit.
Related Issues (20)
- Replace [File] encoding with a real, generic solution HOT 1
- streaming support HOT 4
- Add null-termination to strncpy call HOT 2
- Parsing error
- Serialization seems to contain wrong data HOT 5
- Crash on multipart/form-data decoding with empty mime type. HOT 2
- Explore optimizing parser
- Bug in FormDataEncoder with Optional<CustomValue> HOT 3
- Decoding String enum
- Unable to decode nested `multipart` array.
- Decoding optional type cause error HOT 1
- Unnecessary conversions between `[UInt8]` and `ByteBuffer` HOT 2
- Is there any reason multipart-kit requires macOS 10.15? HOT 2
- Allow alternative parsing strategies in addition to the current "indexed brackets" convention
- Add support for decoding multipart/form-data without knowing the boundary
- Un-vendor the `swift-collections` implementation HOT 5
- Performance issue HOT 3
- How to upload file on iOS? HOT 11
- Encoding corrupts data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multipart-kit.