@
@
In my header I have done this: ... dispatcher().map("POST", "/upload", &myapi::uploaddata, this); mapper().root("/api"); ...
In my source i have done this 👍 void myapi::uploaddata() { try { if (request().request_method() == "POST") { // What can i do here } } catch (std::exception const &e)...
I don't want to create a web page with a form. I juste want to upload data without using traditional method to upload files from a website
@diegodfrf is there a possibility to limit the size of the file?
@diegodfrf Thank you! Thank you! It works. It works.
@diegodfrf If i want to use multimap keys to get posted data, how can I do this?
I want to implement a request that will allow me to retrieve strings and binary data
And I want to use : std::multimap data = request().post();
And I wonder how to do that.