Hi all,
I am trying to upload a custom favicon into my nextcloud v18 via CLI using curl but I am not sure about the right way to do it. From devtools I see that there is a POST request to server/index.php/apps/theming/ajax/uploadImage. As I see that information is subtmitted via form I have tried this:
curl -u user:password -H āOCS-APIRequest: trueā -F ākey=faviconā -F āimage=@"/absolute/path/to/the/favicon.svg"ā -X POST āserver/index.php/apps/theming/ajax/uploadImageā
I am not sure about if this is the correct way to do it. I am intended to automate the customization. I also receive the following error:
{āmessageā:āCSRF check failedā}
Could please anyone help me to figure out where is my error?
thanks