Re: WebDAV action after PUT files
Sean Doyle <sdoyle <at> gmail.com>
2005-11-01 18:33:52 GMT
I've been working on something very similar. I decided against
changing the filenames on the server side because my clients couldn't
then find them (you may have an out-of-band way of doing this). I've
been using a SHA-1 calculation on each file that arrives. Basically
the mechanism is to create a separate store; extend
AbstractTxFileStoreService and put it on the server, then configure
the Domain.xml and web.xml files so that in this store your new class
is the one that is used.
I found this site very helpful:
http://wiki.apache.org/jakarta-slide/MultipleStoresWithSamples
On 11/1/05, janwirtualny <at> op.pl <janwirtualny <at> op.pl> wrote:
> Hi,
>
> It there any possiblity to call
> some defined action after PUT method (also after
> all methods, that changes file repository)?
>
> I want to call checksumming method on uploaded file(s),
> (and possibly, return error after PUT), and change
> file names on the server side, using calculated checksum,
> and custom file name pattern.
>
> Cheers,
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: slide-user-help <at> jakarta.apache.org
(Continue reading)