Just on this - I have nearly finished adding support to upload images on the API side, but I'm wondering if there is a model for adding entries to the attachments table?
i.e. in the miniapi, there is the following code:
$id = $this->milestone_model->insert(
If there was a similar model I could access to be able to add attachment entries it would make my life much easier - then I can use the proper attachment viewmodel url:
Then I would not have to add another virtual host to serve the contents of another folder for these images I am adding and opening ourselves up to potential security issues.
Note that I do not wish to associate this with a Test Case or a Test Result (I want the image displayed inline and can do this via markdown), not sure if that's a problem.