Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/04/2002, 16:08
Avatar de AlZuwaga
AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
Re: ¿Cómo detectar tamaño en KB de un archivo?

Para el tamaño en KB te paso el código:



Código:
<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Archivo = FSO.GetFile(server.mappath("el_archivo.jpg"))
Peso = Archivo.size

Response.Write "Peso: " & FormatNumber(Peso / 1024, 1) & " KB (" & FormatNumber(Peso, 0) & " bytes)"

set FSO = nothing
set Archivo = nothing
%>
Con respecto a saber el alto y ancho no hay nada que hacer mediante ASP. Fijate en www.hotscripts.com que debe existir algún componente para instalar en el servidor que permita hacer eso

saludos