At 12:57 13/08/2003 +0100, you wrote:

Hi



I have written a Servlet that handles file uploads to Slide using Apache Commons FileUpload, but when it tries to create the new WebdavResource, and PUT it, I get the following error& and when I look a the store, it seems to have created a folder called errmsg.txt/ instead of a text file. I have attached the Servlet file to this email (I know the FileUpload module file handling is not optimised, but its just a test at the mo).



Incidentally, every time I restart Tomcat, it wipes the store including any folders I have created properly(!) using Windows WebFolders& what could be causing that, and how can I sort it?

You have to modify the location of the store, in the Domain.xml configuration file (included in the slide.war). I advise aswell to switch to JDBC persistence for descriptors, as it proves to be rather stable.


Stan.



Cheers

stu



13 Aug 2003 12:41:47 - org.apache.slide.webdav.WebdavServlet - INFO - GET = 200

OK (time: 10 ms) URI = /files

Filename = G:\mysql\share\slovak\errmsg.txt

Content Type = text/plain

In Memory? = false

Size in bytes = 13329

The HttpURL is... http://localhost:8080/slide/files/errmsg.txt

13 Aug 2003 12:42:05 - org.apache.slide.webdav.WebdavServlet - INFO - PROPFIND =

207 Multi-Status (time: 60 ms) URI = /files/errmsg.txt

13 Aug 2003 12:42:05 - org.apache.slide.webdav.WebdavServlet - INFO - PUT = 409

Conflict (time: 0 ms) URI = /files/errmsg.txt

THE DESTINATION PATH = /files

The URI is... /files/errmsg.txt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to