Hi jtnguyen23,
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???
Just ask if any of this doesn't make sense. If you have any other options/ideas, would love to hear them!
Just fyi, the current behaviour is: using the "java.io.tmpdir" location, and then using `System.currentTimeMillis()` for the folder name (details here).
Let me know what you'd like and I'll make the changes, and then upload a new plugin for you to test! 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
Hi jtnguyen23,
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?
Just ask if any of this doesn't make sense. If you have any other options/ideas, would love to hear them!
Just fyi, the current behaviour is: using the "java.io.tmpdir" location, and then using `System.currentTimeMillis()` for the folder name (details here).
Let me know what you'd like and I'll make the changes, and then upload a new plugin for you to test! 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