If you pass an invalid local filename to saveAttachment in store, TWiki will complain too late with the error "is not writable" when calling Store::saveAttachment
Can you please add a test in sub _saveAttachment in
RcsFileDotPm? It might save someone else an hour or so.
unless (-f $theTmpFilename) {
die "No such file $theTmpFilename"; # or logging or whatever.
}
Thanks.
--
MartinCleaver - 15 Oct 2004
Since _saveAttachment is private to
RcsFile, it should be an ASSERT. If you want it Martin, you can check in the change.
--
CrawfordCurrie - 21 Feb 2005