|
Hi Justin Nguyen,
Thanks for the feedback! Just so you know, you don't actually have to setup a job parameter, the plugin will just inject the `pmt_attachmentsDirectory` variable straight into the job for you.
Regarding the download directory, I was thinking we'd need to generate a new directory each time, to make sure we're not overwriting the previously downloaded attachments (in case the same filename's clash). I like your idea, of being able to specify a parent folder to download them into though.
How would you expect/like it to behave?
-
be able to turn on/off downloading attachments in the plugin configuration?
-
be able to specify a target directory in the plugin configuration OR just use the "java.io.tmpdir" location?
-
do you want the attachments to download into the configured directory (overwriting files with the same name) OR should it create subfolders using a date timestamp (e.g. `parentFolder/yyyyMMdd-HHmmssSSS/`)?
-
anything else???
Currently it's just using the "java.io.tmpdir" location, and then using `System.currentTimeMillis()` for the folder name (details here).
Let me know, I'll make the changes, and upload a new plugin! The existing plugin wouldn't cause the issue you're describing, but it'd be a good idea to have only one version installed at a time (I don't know what happens if you have multiple!??).
Kind regards, Nick
|