Hi, We are having an issue with attachments to a REST call we are making. We have set up the attachment-directory property so that the file is written to a set directory, but we then need to move it to somewhere else. We can do this by accessing the InputStream from the attachment and then using an OutputStream to write the file, but this is not very performant from us. The temporary directory is located on a network drive, and we want to move it to another directory on this drive, meaning a simple file move/rename would be the ideal way to do this.
The problem is that the temporary file it written with a random name, and so although we know which directory is resides in, we don't know which file in that directory is the one from the current call. So, is there either a way of getting the name of the temporary file that has been written, or is there another way that we would be able to accomplish what we want to do? Hope this is clear, and please feel free to ask if anything doesn't make sense! Thanks Graham
