I'm trying to attach a file uploaded to the temp directory to a JIRA ticket
local.file = fileUpload(getTempDirectory(), attachment);
local.cfhttp = new http(method='POST', url='https://{url}.atlassian.net/rest/api/2/issue/{issue key}/attachments', charset='utf-8', multipart=true, multipartType='form-data');
local.cfhttp.addParam(name='Authorization', value=variables.getToken(), type='header');
local.cfhttp.addParam(name='X-Atlassian-Token', value='nocheck', type='header');
local.cfhttp.addParam(name='File', file=local.file.serverDirectory & '\' & local.file.serverFile, type='file');
local.cfhttp = local.cfhttp.send().getPrefix();
writeDump(local.cfhttp);abort;
I get a 200 response back, but the content only returns the following:
[]
Any help would be appreciated.
@Thomas Lutterman Did you ever resolve this.? I'm hitting the same issue on Lucee.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.