Hello, I am writing code for testing API:Upload for chunked uploading.
Code: link
Error: 'File upload parameter “chunk” is not a file upload; be sure to use “multipart/form-data” for your POST and include a filename in the “Content-Disposition” header.
The error says chunk is not a file upload but when I pass the exact same content in ‘file’ parameter then the code runs successfully. Here file parameter also has to be file upload. Since both are file uploads, I am unable to understand why it is giving error.