-
Notifications
You must be signed in to change notification settings - Fork 138
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
How to submit a file? #58
Comments
Bump. Is anyone there? |
Hey, |
Interesting, I'll test this tonight.
Matthieu Garrigues
…On Tue, Oct 17, 2017 at 7:43 PM, Yevgeniy Zakharov ***@***.*** > wrote:
[image: default-userpic]
<https://user-images.githubusercontent.com/6009640/31679076-dc7581c6-b391-11e7-87fe-a8fa89793c63.png>
Trying to upload a picture as a base64 encoded string.
Base64 is iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAAGXRFWHRTb2Z0
d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9i
ZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek
5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9
IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8w
Ni0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJk
ZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8v
bnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25z
LmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9u
cy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpD
cmVhdG9yVG9vbD0iQWRv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YHzThctg3Nrc6Kdb2rt3psGNP0IfTTtza7oxYl6P17W3sA3rd2iVd3G6xL
k8M22y4kk43pIujJ7H2iUV8ev/+PR7vpB7SxaSjr/34aFqsXYczm8lgu7NAJp22X7fgoKRZ
iz1uN7Y4O5Duvt7bqTmxyICuWChgc7NDoVBwuNy8i+V1e7CtWcPn8fArVjAUzudz2NCskctl
Q/thHsXy+rzYymzi9fr4EiudzZ6enGATs0nsJJpp8jLVVcVyu724Isosl3f13F5exDo8O
MD2ZZnDw4PWixWNxXJZXBRlmmwmE22m7M+VxPL7A9iySFMaXEmsk2gUmxVpSoPvi
xVPJPM5XL5CRESDq3/25/tihSMRbFOkWRmu8MSK441TpGkZ/
i3AANDu2s1wRYPcAAAAAElFTkSuQmCC.
Query is
curl -X POST \
http://localhost:12345/post \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 05daa685-39aa-d5ad-2e28-10e304f94824' \
-d '{
"image":"iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0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yzMWVv23dAW3NL5+GlD4FXOkO+PiSsV2/p6Pl949HCpJf/hTU9Vr9s20SpqcLuc67atzou1YdtyORzYHzThctg3Nrc6Kdb2rt3psGNP0IfTTtza7oxYl6P17W3sA3rd2iVd3G6xLk8M22y4kk43pIujJ7H2iUV8ev/+PR7vpB7SxaSjr/34aFqsXYczm8lgu7NAJp22X7fgoKRZiz1uN7Y4O5Duvt7bqTmxyICuWChgc7NDoVBwuNy8i+V1e7CtWcPn8fArVjAUzudz2NCskctlQ/thHsXy+rzYymzi9fr4EiudzZ6enGATs0nsJJpp8jLVVcVyu724Isosl3f13F5exDo8OMD2ZZnDw4PWixWNxXJZXBRlmmwmE22m7M+VxPL7A9iySFMaXEmsk2gUmxVpSoPvixVPJPM5XL5CRESDq3/25/tihSMRbFOkWRmu8MSK441TpGkZ/i3AANDu2s1wRYPcAAAAAElFTkSuQmCC"
}'
The app crashes in json parsing.
My code is:
auto myApi = http_api(
POST / _post * post_parameters(_image = std::string()) = [](auto p) {
return postController.post(p.image);
}
);
int main(int argc, const char * argv[]) {
cout << "path = " << argv[0] << endl;
sl::mhd_json_serve(myApi, 12345);
return 0;
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAzq-JDa9ONs7rmUmnrCsnbW1wLYEb6Pks5stOdQgaJpZM4O8YyC>
.
|
I could not reproduce this problem neither with g++ nor clang++. Are you sure to compile with the last version of iod and silicon ? |
I guess I gitpulled silicon but didn't gitpull iod. I'll fix it and reproduce this case |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to submit a jpeg image as
form-data
. I've searched through examples but didn't find it. Please tell me if I missed it. ThanksThe text was updated successfully, but these errors were encountered: