attachment import
Posted: 15 Oct 2009, 06:49
Hello,
i'm currently developing a converter from Rational Clearquest to Mantis for my Company.
I've managed to get everything to work (bugs are imported with correct date desc and so on) except the attachments.
The ImportXML Plugin has been rewritten for this purpose.
So currently the bug is created with the data from the .xml file and I get the path to the attachment.
Now my Problem:
To make it short, I can't upload the attachment because the function file_add() expects an array.
I currently only have the bug ID and the Path to the attachment.
Is there a way to create the necessary information expected by file_add() with these informations?
regards,
Haynes
i'm currently developing a converter from Rational Clearquest to Mantis for my Company.
I've managed to get everything to work (bugs are imported with correct date desc and so on) except the attachments.
The ImportXML Plugin has been rewritten for this purpose.
So currently the bug is created with the data from the .xml file and I get the path to the attachment.
Now my Problem:
To make it short, I can't upload the attachment because the function file_add() expects an array.
I currently only have the bug ID and the Path to the attachment.
Is there a way to create the necessary information expected by file_add() with these informations?
regards,
Haynes