this.Buffer;
this.width=-1;
this.height=-1;
this.mime="";
this.channels;
this.bits;
this.size=-1;
this.extension;
this.id;
this.Open=function Open(pFileName){
this.FileName = pFileName
this.Buffer=Server.CreateObject("ADODB.Stream");
this.Buffer.CharSet ="ISO-8859-1";
this.Buffer.Type = 2
this.Buffer.Open()
//Response.Write(Server.MapPath(pFileName));Response .End;
this.Buffer.LoadFromFile(Server.MapPath(pFileName) );
this.Buffer.Position = 0
this.size=this.Buffer.Size;
this.extension = pFileName.substring(pFileName.lastIndexOf(".")+1). toLowerCase();
Ho questa porzione di codice che mi funziona con win 2000, ma con server 2003 mi dà l'errore nella parte in rosso. Questo perchè non accetta i "../". Ma in questo caso non so come ovviare perchè non conosco la funzione this.Filename e come fare in modo che non metta i ".." Chi mi aiuta?