Angular File Download Application / Octet-Stream

Is it possible to upload files as an octet stream with the angular file upload plugin? I manually set the content type in the header to "application / octet-stream", but the bootloader does not check its own headers.

The body always represents these forms:

------WebKitFormBoundaryGgizqnvAqFRXn2HB Content-Disposition: form-data; name="file"; filename="53f60e5267c2460000623dcd.wav" Content-Type: audio/wav ------WebKitFormBoundaryGgizqnvAqFRXn2HB-- 

Is it possible to set the download to an octet stream? The server I'm loading does not support form data.

+5
source share

Source: https://habr.com/ru/post/1245154/


All Articles