How to upload file from http webpage using POST method?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Dear Sir:

Is it possible using POST method to handle upload file request in WICED SDK? And how?

// getenv("CONTENT_LENGTH") seems return NULL.

0 Likes
5 Replies
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

The current http_server library should support this, if it is not working as expected, let us know some more specific details.

0 Likes
Anonymous
Not applicable

You mean SDK 3.0.0 ?

0 Likes

2.4.1 should be fine too. But you can try 3.0.x. 

0 Likes
Anonymous
Not applicable

My issue is same as HTTP Server - POST, and any update about this?

I tried to study ~/Apps/waf/ota_upgrade/web_server(in 2.4.1), there was an example http server which can handle file upload.

I am trying to integrate this (ThreadX_NetX_Duo_web_server.c run_webserver() ) into ~/Library/daemons/http_server/http_server.c. I believe it can work.

But....

Does this feature will implement in nearly SDK?

Or is there the other way to implement POST upload file(maybe 128Kbyte)?

(instead of writing a file upload/download daemons like FTP, I think HTTP is a more easy way to handle it )

0 Likes
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

Hello -

Is this still an issue for you?  Can you try SDK 3.1.0 and see if there is a difference.

0 Likes