Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader remove from tempfilelocation Options
newprogrammer
Posted: Saturday, November 12, 2011 7:58:47 AM
Rank: Newbie
Groups: Member

Joined: 11/12/2011
Posts: 1
Hi! I need your help, i'm using AjaxUploader from upload file to my page. I'm using a checkboxlist for the user can selected the files he want upload finally. Excuse me for my english...i'm spanish.

When the user wants delete a file from the checkboxlist i try remove the file from TEMPFILELOCATION with this code:

iContador = 0
For Each file In fufile0.PostedFiles
If file.ClientFileName = oItem.Text Then
file.TempFileName.Remove(iContador)
End If
iContador = iContador + 1
Next
But the file doesnt remove!!!
Can you help me please!!!??
Thanks a lot

HOla, necesito vuestra ayuda, lo he escrito en ingles pero perdonadme porque la verdad que mi nivel es algo bajo...
Estoy usando un control AJAXUploader para una web, el caso es que quiero que funcione de la siguiente forma (esto ya lo tengo hecho)
El usuario sube un fichero y aparece seleccionado en una lista (checkboxlist), pero si el usuario se arrepiente, necesito que al deseleccionar, se borre ese fichero de la carpeta temporal, pero no lo consigo.... Uso el codigo que he puesto arriba. ¿Alguien puede ayudarme?

Estoy intentado buscar información pero solo he conseguido encontrar que este control borra los ficheros automaticamente, pero yo necesito borrar fichero cuando yo quiera de esta carpeta TEMPFILELOCATION.

Gracias a todos!
eo_support
Posted: Saturday, November 12, 2011 4:21:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You should NEVER delete files in the AJAXUploader's temp directory. Files in that directory will be automatically deleted by AJAXUploader.

If you want to keep a file, copy it to somewhere else. If you do not want to keep a file, just do nothing and the file will be deleted by the AJAXUploader.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.