PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Upload control isn't working - Webdev 24
Upload control isn't working - Webdev 24
Iniciado por Diogo, 21,abr. 2021 17:56 - 3 respuestas
Publicado el 21,abril 2021 - 17:56




FOR i = 1 _TO_ MySelf..Occurrence

sFileName = UploadFileName(MySelf, False)
sFilePath = fWebDir() + "\imageCache"
IF UploadCopyFile(MySelf, sFilePath, sFileName) = "" THEN
ErrorInfo(errFullDetails)
//Error("Erro ao carregar a imagem.")
END
END


This code it´s inside an upload control "Receiving the files uploaded". When i choose an image to upload in this control it shows that Occurrence = 0, this means that no files where uploaded.
I know that the problem isn´t the code because my colleague uses the same code in is project and it work.
Publicado el 26,abril 2021 - 10:56
Are you trying this in debug mode? I had this issue as well, then it turned out that I used IIS Express as webserver. Whan I changed to standard IIS webserver, it worked.
Publicado el 30,abril 2021 - 10:49
It's probably the server. IIS Express doesn't play well with the upload function.
Publicado el 19,mayo 2021 - 15:07
Yeah, that was the problem, thank you.