Community Support for OpenDocMan (Deprecated)
File Viewing Problem On Windows xp - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: File Viewing Problem On Windows xp (/thread-70.html)



File Viewing Problem On Windows xp - Stephen - 01-13-2010

xuwq
2005-12-04 17:39:30 PST
My Problem: Could not view file after adding.
Warning: stat failed for C:\apache\htdocs\opendocman\data3.dat (errno=2 - No such file or directory) in c:\apache\htdocs\opendocman\view_file.php on line 98

My config.php: 'dataDir' => 'C:\apache\htdocs\opendocman\data'

Considering the warning, OPENDOCMAN think the filename is 'data3.dat', but the file saved in 'dataDir' is named 3.dat.

So I modified the 'dataDir'. I have tried 'C:\apache\htdocs\opendocman\data\' or 'C:\\apache\\htdocs\\opendocman\\data\\' but it is not ok.


logart
2005-12-05 09:52:02 PST
If you set it to 'C:\apache\htdocs\opendocman\data\' (which is correct with the ending '\') then you need to make sure the dir exists, and is writeable by the web server.

steve


xuwq
2005-12-05 22:14:37 PST
I am sure the dir exits.

It is not ok to set 'C:\apache\htdocs\opendocman\data\';
because '\'' seems has some special meaning like '\n' means a different line and '\t' means a tab.

When I set it to be 'C:\apache\htdocs\opendocman\data', It works well when saving files and It can write files like '1.dat' or '2.dat'. The problem happens when I want to view it.

It give the warning 'stat failed for C:\apache\htdocs\opendocman\data3.dat'.
3.dat --> data3.dat


janant
2007-07-28 05:22:54 PDT
Well, it seems that php is parsing the path incorrectly as per Stephens comment, hence the "data3.data" (which should be "data\3.dat"...

Have you tried changing the data directory to "unix-format", ie as per
'c:/apache/htdocs/opendocman/data/' - I think it could parse ok, although Win-platform.

Cheers,
JaniA


ilovekopi
2008-01-11 09:32:21 PST
I am running OpenDocMan on Windows 2003 server. I have the same problem. but however when I change the data directory to "unix format", it works well and i can see PDF files.