Hi,
I want to add a timestamp to the filename of uploaded attachments so that each new upload is a new attachment and not a new version if the filename already exists. I managed to implement a servlet filter that performs the required action for drag and drop upload, but I don't know how to handle uploads through the upload panel?
Is it possible to change the name in the multipart request during upload?
Or can I hook in some handler that renames every new upload before it apears as an attachment?
Or can I write a custom upload handle?
Hi @Tuelle ,
you need to intercept upload action (you need to extend AttachFileAction in a plugin) and perform rename on execute method.
Hope this helps,
Fabio
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.