I am trying to perform uploads and other functions in the Files app from the command line with the curl command.
I am making the following request
I am getting an HTTP/1.1 500 Internal Server Error.
I think there is a mistake in the request.
I could not find the correct way to make the request by looking at the messages and logs.
It would be helpful to have documentation on the API for file manipulation.
Does information about the API exist?
curl -H “Origin: http://10.1.19.152” -H “Cookie: _session_id=f8e53608d9a6708ebbc1b763f91b1f44” -H “X-CSRF-Token: vfB/7ZPMTLx1EsxQttkB0XozqGvBP3GyLC6bqyOfhe761nuTqlpQbkIWMhA8fHGNiB/zjPsF57t6jJM/HBPE2Q==” -H “Referer: http://10.1.19.152/pun/sys/dashboard/files/fs/home/ood” -F “name=file;filename=@test2” -X POST http://10.1.19.152/pun/sys/dashboard/files/upload --basic -u ood:ood
Translated with DeepL Translate: The world's most accurate translator (free version)