Ejemplo n.º 1
0
        public ViewDataUploadFilesResult UploadResult(String FileName, int fileSize, String FileFullPath)
        {
            String getType = System.Web.MimeMapping.GetMimeMapping(FileFullPath);
            var    result  = new ViewDataUploadFilesResult()
            {
                name         = FileName,
                size         = fileSize,
                type         = getType,
                url          = UrlBase + FileName,
                deleteUrl    = DeleteURL + FileName,
                thumbnailUrl = CheckThumb(getType, FileName),
                deleteType   = DeleteType
            };

            return(result);
        }
Ejemplo n.º 2
0
        public ViewDataUploadFilesResult UploadResult(String FileName, int fileSize, String FileFullPath, String SosFileName, int LeveransId, int SequenceNumber)
        {
            String getType = System.Web.MimeMapping.GetMimeMapping(FileFullPath);
            var    result  = new ViewDataUploadFilesResult()
            {
                name           = FileName,
                size           = fileSize,
                type           = getType,
                url            = UrlBase + FileName,
                deleteUrl      = DeleteURL + FileName,
                thumbnailUrl   = CheckThumb(getType, FileName),
                deleteType     = DeleteType,
                sosName        = SosFileName,
                leveransId     = LeveransId,
                sequenceNumber = SequenceNumber
            };

            return(result);
        }