PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Upload control isn't working - Webdev 24
Upload control isn't working - Webdev 24
Débuté par Diogo, 21 avr. 2021 17:56 - 3 réponses
Posté le 21 avril 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.
Posté le 26 avril 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.
Posté le 30 avril 2021 - 10:49
It's probably the server. IIS Express doesn't play well with the upload function.
Posté le 19 mai 2021 - 15:07
Yeah, that was the problem, thank you.