Hello Donnie, Sorry for not getting back sooner, the "~this" and "/retro.pdf/" each have a reason for existing. "~this" exists because there is talk about eventually allowing nested spaces and if you created a space called TestPage1 and inside of it created a document called "attachments" then we would have a problem. The "/retro.pdf/" is for supporting versioning which is not (quite) written yet. retro.pdf version 1.1 will be: /var/cache/tomcat5/work/storage/xwiki/Sandbox/TestPage1/~this/attachments/retro.pdf/retro~v1.1.pdf and 1.2 will be /var/cache/tomcat5/work/storage/xwiki/Sandbox/TestPage1/~this/attachments/retro.pdf/retro~v1.2.pdf
On 12/21/2010 04:22 AM, Guillaume Lerouge wrote: > Hi Denis, > > On Mon, Dec 20, 2010 at 14:38, Donnie Lee <[email protected]> wrote: > >> Hi Caleb! >> >> Thanks. I copied it in lib, altered the xwiki config and got very long >> path for file storage. For example, I uploaded retro.pdf file at >> Sandbox page (Xwiki Centos 5 installation), path is: >> >> /var/cache/tomcat5/work/storage/xwiki/Sandbox/TestPage1/~this/attachments/retro.pdf/retro.pdf >> >> Why to use "~this" in file path and folder "retro.pdf"? >> What do you think, is /var/cache the right place for attachments? >> > > Caleb explained his rationale for this on item 2. here: > http://markmail.org/message/pl7v4sew2ujksrvv > > Hope this helps, > > Guillaume > > >> Also, I have no success with file deletion. If I delete file folder >> directly from attachments folder, then it still exists on page and I >> can't remove it from page. This is the wrong way to do it and probably will not ever be supported. >> If I delete it from web, it don't deleting >> at filesystem and still exists on webpage. Does it say "deleting attachment" at the bottom of the screen and never stop? This is a problem which I have encountered some times. It is because a greedy thread is refusing to give up the lock and I have to implement lock forcing before this becomes mainstream. Caleb >> >> On Fri, Dec 17, 2010 at 1:39 PM, Caleb James DeLisle >> <[email protected]> wrote: >>> Here is a copy of the .jar file. You put that file in your /WEB-INF/lib >> directory (don't worry about >>> the 2.7 in the name it should be compatible) and change your xwiki.cfg >> file as described earlier. >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
