It only work if the attached file is bounded to the first posted message.
Try to create a new topic and attach the image at the same time, and try to use "upload EJS jar file" option to upload the jar file.