XLSX File Upload via K6 POST Request

Hi, I want to upload the file using k6, but its not allowing me to do that. Can you please help me, below is the CURL

curl --location ‘https://abc/xyz
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer token’
–form ‘file=@“/xyz.xlsx”’

Hi @suyashnatural

What kind of issues have you faced? Have you tried to use the http.file file( data, [filename], [contentType] ) ?

Cheers!