private void PopulateFileSymbols(jQueryObject fileElement, UploadedFile file, bool displayOriginalName)
        {
            fileElement.Html("");

            if (file == null || file.Filename.IsEmptyOrNull())
            {
                return;
            }

            var li = jQuery.FromHtml("<li/>");

            var isImage = UploadHelper.HasImageExtension(file.Filename);

            var thumb = jQuery.FromHtml("<a/>")
                        .AppendTo(li);

            var originalName = file.OriginalName ?? "";

            string fileName = file.Filename;

            //if (!fileName.StartsWith("temporary/"))
            //    fileName = "personelFoto/" + fileName;

            thumb.Attribute("href", UploadHelper.DbFileUrl(fileName));
            thumb.Attribute("target", "_blank");

            if (!originalName.IsEmptyOrNull())
            {
                thumb.Attribute("title", (originalName));
            }

            var img = J("<img/>").Attribute("src", UploadHelper.DbFileUrl(fileName)).AppendTo(thumb);

            UploadHelper.ColorBox(thumb, new object());

            if (displayOriginalName)
            {
                jQuery.FromHtml("<div/>")
                .AddClass("filename")
                .Text(originalName)
                .Attribute("title", originalName)
                .AppendTo(li);
            }

            li.AppendTo(fileElement);
        }