petko_stankoski
petko_stankoski

Reputation: 10713

Add attachment to bug by url

I tried with this url:

https://myPath.fogbugz.com/api.asp?cmd=new&sTitle=sometitle&ixProject=1&token=12345678910111213&FileName=C:\Users\John\Desktop\xxx.txt

and the issue is created, but the attachment no. How to do this?

Upvotes: 1

Views: 219

Answers (1)

ianmjones
ianmjones

Reputation: 3415

You'll need to use POST rather than GET, POSTing in multipart/form-data format and passing in the files as type "file" and name "File1", "File2", "File3" etc, with a "nFileCount" parameter set to the total number of files being sent.

Have a look at the Editing Cases section in the XML API docs for further details.

Upvotes: 1

Related Questions