PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Upload control isn't working - Webdev 24
Upload control isn't working - Webdev 24
Started by Diogo, Apr., 21 2021 5:56 PM - 3 replies
Posted on April, 21 2021 - 5:56 PM




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.
Posted on April, 26 2021 - 10:56 AM
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.
Posted on April, 30 2021 - 10:49 AM
It's probably the server. IIS Express doesn't play well with the upload function.
Posted on May, 19 2021 - 3:07 PM
Yeah, that was the problem, thank you.