Modificare il file:
\FckEditor\filemanager\browser\default\connectors\asp\getImageSize.aspx
<%@ Page Language="VB" debug="true" ContentType="text/html" ResponseEncoding="iso-8859-1"%> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <script runat="server"> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim FilePath As String = Request("FilePath") dim dimension as string try if isImage(FilePath) then Dim bmp As System.Drawing.Image = System.Drawing.Image.FromFile(FilePath) dimension = "size," & bmp.Width & "," & bmp.Height bmp.Dispose() else dimension = "size,0,0" end if catch dimension = "size,50,50" end try Response.Write(dimension) Response.End() End Sub Private Function isImage(ByVal img As String) Dim retStr As Boolean = False If img.ToLower.EndsWith(".gif") Or img.ToLower.EndsWith(".jpg") Or img.ToLower.EndsWith(".jpeg") Or img.ToLower.EndsWith(".bmp") Or img.ToLower.EndsWith(".png") Then retStr = True End If Return retStr End Function </script>
[
Íàçàä
]