I am trying to upload a file to an account via Egnyte API. The CURL command says:
curl -v --request POST\
-H "Authorization: Bearer 2v8q2bc6uvxtgghwmwvnvcp4"\
--upload-file\
~/Desktop/test.txt https://acme.egnyte.com/pubapi/v1/fs-content/Shared/Documents/test.txt
Can someone, tell how can I post it via PHP and get the JSON response as returned by the CURL call?
I finally resolved it. Apologies for posting the solution lat. Below, is the function I created to upload the files to the server:
Please do let me know n case of any issues/problems if anyone faces. I can help out.
FYI:
You can also contact for: