Hi,
I'm using webDAV and having problems with files that are 'too deep' within a directory structure. It seems I can only link to files that are 1 level deep, anything deeper just outputs errors like so :
Using Path: /NEBOSH-NDip/mp3/
ERROR: Invalid JSON string
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
XML error: > required at line 109
Path: /NEBOSH-NDip/mp3/ - navigating here outputs the above error!
The file I wanted to find was located at:
Path: /mp3/UNIT_A/A1/01_Diploma_A1.mp3
I've performed a few tests to see if there's a string problem with file/directory names by moving the files locations around, using upper/lower case, using numbers/regular chars in the directory naming etc.
The results of my tests showed the flowing:
These paths to files all work. You will notice they are only 1 directory deep.
Path: /mp3/01_Diploma_A1.mp3
Path: /ndip/01_Diploma_A1.mp3
Path: /ndip/02_Diploma_A1.mp3
Path: /videos/A5_Safety_culture.flv
##############################
The below paths DO NOT work - You will notice these paths are all more than 1 directory deep.
trying to link to mp3 files types... could not get past the following structure level.
- Using Path:/mp3/UNIT_A/test/
- Path:/mp3/UNITA/A1/
- Path:/mp3/ndip/a1/
- Path: /ndip/a1/
- Path:/ndip/1/
trying with flv file types... again cannot go deeper than 1 directory
- Path: /videos/videos/
Has anyone else expierienced this issue? or can shed any light on how to resolve this problem?
Thank you for any input!
Cheers
Steve