1
Vote

Issue when thumbnail was config within root directory

description

Thanks for shared your connector with elfinder.

I had a issues When I configured the same folder in the root folder thumbnails. The folder tree in left browser still display thumbnails folder in tree, so when several click thumbnails folder a exception throw
"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
I thinks issues occurs when Tree command execute, and add folder to tree without check hidden attribute.
JsonResult IDriver.Tree(string target)
    {
        FullPath fullPath = ParsePath(target);
        TreeResponse answer = new TreeResponse();
        foreach (var item in fullPath.Directory.GetDirectories())
        {                
            answer.Tree.Add(DTOBase.Create(item, fullPath.Root));
        }
        return Json(answer);
    }
btw, I don't understand why you concatenation original file name with hash md5. I thinks it make size of thumbnails folder increase every time original file changed

comments

neverlandx wrote Sep 3, 2013 at 10:31 AM

addition issue, a field _url in root class. I think use with Url property but a seem mistake here when view Url property it only
public string Url { get ; set;} so when getfileCallBack I only get Url in partern /Connecter?cmd....

EvgenyNoskov wrote Sep 9, 2013 at 8:15 AM

Hi neverlandx,

I can not reproduce your issue. Please, use a latest source code https://elfinder.codeplex.com/SourceControl/latest and in this code issues with 'Tree' command and _url field are fixed.

EvgenyNoskov wrote Sep 9, 2013 at 8:16 AM

btw, I don't understand why you concatenation original file name with hash md5. I thinks it make size of thumbnails folder increase every time original file changed
It made for proper working of caching and updating thumbnail if users changes pictures with elfinder's picture editor. The size of folder are not increases because of when genarates new thumbnail the old thumb deleted.