Closed mfizz1 closed 6 years ago
I am using this version of the hack and I am trying to upload a file using curl. The site I am uploading to requires the media files to be sent using binary.
The curl I am using is the one compiled for this camera mentioned a few posts back.
curl --insecure -v --max-time 1200 -H Host: ...-H Authorization: xxx -H Content-Type: application/octet-stream --request POST --data-binary @/tmp/sd/record/....mp4 --header Transfer-Encoding: chunked -o UPLOAD_TOKEN -D Media_Binary_Data https://...uploads
Is there a way to get it not load into memory or an alternative I can use?
Worked it out use -T and -X Post to overcome memory issue
I am using this version of the hack and I am trying to upload a file using curl. The site I am uploading to requires the media files to be sent using binary.
The curl I am using is the one compiled for this camera mentioned a few posts back.
curl --insecure -v --max-time 1200 -H Host: ...-H Authorization: xxx -H Content-Type: application/octet-stream --request POST --data-binary @/tmp/sd/record/....mp4 --header Transfer-Encoding: chunked -o UPLOAD_TOKEN -D Media_Binary_Data https://...uploads
Is there a way to get it not load into memory or an alternative I can use?