Skip to content

Commit

Permalink
Upload bulkdata on Study level : Using Edit Attributes and then uploa…
Browse files Browse the repository at this point in the history
…ding the file sends incorrect attribute values in request payload #2794
  • Loading branch information
shral committed Oct 6, 2020
1 parent 013e236 commit 39a201b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export class UploadFilesComponent implements OnInit {
].indexOf(key) === -1))
object[0][key] = studyObject[key];
});
const jsonData = dashes + boundary + crlf + 'Content-Type: application/dicom+json' + crlf + crlf + JSON.stringify(object) + crlf;
const jsonData = dashes + boundary + crlf + 'Content-Type: application/dicom+json' + crlf + crlf + JSON.stringify(j4care.removeKeyFromObject(object, ["required","enum", "multi"])) + crlf;

const postDataStart = jsonData + dashes + boundary + crlf + 'Content-Type: ' + file.type + crlf + 'Content-Location: file/' + file.name + crlf + crlf;
const postDataEnd = crlf + dashes + boundary + dashes;
Expand Down

0 comments on commit 39a201b

Please sign in to comment.