| 39 | } |
| 40 | |
| 41 | void onPostSuccess(emscripten_fetch_t *fetch) { |
| 42 | printf("onPostSuccess URL=%s status=%d\n", fetch->url, fetch->status); |
| 43 | assert(fetch->status == 200); |
| 44 | // The data is now available at fetch->data[0] through fetch->data[fetch->numBytes-1]; |
| 45 | emscripten_fetch_close(fetch); // Free data associated with the fetch. |
| 46 | |
| 47 | // Now attempt to GET the POST'ed file |
| 48 | doGet(); |
| 49 | } |
| 50 | |
| 51 | int main() { |
| 52 | // Upload a file using `POST` with `?file=` |
nothing calls this directly
no test coverage detected