How do I post files to instances within a project?
In Rest Api docs, described method works for default project:
POST (?path=/path/inside/the/instance)
But targeting a project instance?
I have tried so far:
POST (?path=/path/inside/the/instance&project=MyProj)
POST (?project=Myproj?path=/path/inside/the/instance)
With no success.
This just happens with files. Some other api endpoints works proper with same container in that project.
Perhaps an issue with project name which is numeric?
Your shell example is also partly failing because you forgot to put the URL between “” and as it includes a “&”, the shell is executing only part of it and then backgrounding the process.
I had tried it with content-type application octet-stream, text/csv, and all possible x-lxd- variants, all failed.
Indeed it was just about “&” as you hinted already…