Foros del Web » Programando para Internet » ASP Clásico »

problema al eliminar imagen

Estas en el tema de problema al eliminar imagen en el foro de ASP Clásico en Foros del Web. hola miren este es el error Tipo de error: Microsoft VBScript runtime (0x800A0035) File not found /ioweb/archivos_delete.asp, línea 16 @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código asp: Ver original ...
  #1 (permalink)  
Antiguo 21/05/2009, 09:43
Avatar de mc_quake  
Fecha de Ingreso: enero-2006
Ubicación: www.ecocargo.cl
Mensajes: 683
Antigüedad: 19 años, 3 meses
Puntos: 8
problema al eliminar imagen

hola miren este es el error

Tipo de error:
Microsoft VBScript runtime (0x800A0035)
File not found
/ioweb/archivos_delete.asp, línea 16

Código asp:
Ver original
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <!--#include file="Connec/Conn.asp" -->
  3. <!--#include file="_includes/funciones.asp" -->
  4.  
  5. <%
  6. Imgs = Trim(rq("img"))
  7. ar_id = int(rq("ar_id"))
  8.  
  9. rw(Imgs)
  10. rw("<br>")
  11. rw(ar_id)
  12.  
  13. 'response.End()
  14.  
  15.  
  16. If Exist(carpetaImg&"/"& Imgs) Then
  17. fso.DeleteFile(Server.MapPath(carpetaImg&"/"&Imgs))
  18. End If
  19.  
  20.  
  21. Sql = "DELETE FROM ARCHIVOS WHERE ar_id = "& ar_id
  22. Set Conn = Server.CreateObject("ADODB.Connection")
  23. Conn.open MM_conn_STRING
  24. Set RS = Conn.Execute(Sql)
  25.  
  26. Response.Redirect(request.ServerVariables("HTTP_REFERER"))
  27.  
  28. %>

el archivo funciones.asp contiene esta funcion:

Código asp:
Ver original
  1. Function Exist(foto)
  2. If fso.FileExists(Server.MapPath(foto)) Then Exist = True Else Exist = False
  3. End Function

y en el Conn.asp esta esta variable

Código asp:
Ver original
  1. carpetaImg = "_file"


diagrama de carpetas

Raiz ioweb
--->_files
---->archivos a borrar....
---->archivos a borrar.....
---->archivos a borrar.....
---->archivos a borrar.....
.
.
.
--->Connec
---->Conn.asp
--->_includes
---->funciones.asp
--->archivos_delete.asp
__________________
Mc_Quake

Para ayudar en lo que se pueda:Zzz:
  #2 (permalink)  
Antiguo 21/05/2009, 09:46
Avatar de mc_quake  
Fecha de Ingreso: enero-2006
Ubicación: www.ecocargo.cl
Mensajes: 683
Antigüedad: 19 años, 3 meses
Puntos: 8
Respuesta: problema al eliminar imagen

ajjajajaja lo solucione altiro es que ando medio bloqueado hoy despoues de escribir este post y ver bien el detalle me di cuenta que el error era en la ruta

carpetaImg = "_file"
por esta
carpetaImg = "../_file"
__________________
Mc_Quake

Para ayudar en lo que se pueda:Zzz:
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:55.