PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
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
Connect yourself…
Diogo
#1
Posted on April, 21 2021 - 5:56 PM
FOR i
=
1
_TO_
MySelf
..
Occurrence
s
FileName
=
UploadFileName
(
MySelf
,
False
)
s
FilePath
=
fWebDir
(
) +
"\imageCache"
IF
UploadCopyFile
(
MySelf
,
s
FilePath
,
s
FileName
) =
""
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.
Report
0
0
Tim Korssen
#2
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.
Report
0
0
Scott
#3
Posted on April, 30 2021 - 10:49 AM
It's probably the server. IIS Express doesn't play well with the upload function.
Report
0
0
Diogo
#4
Posted on May, 19 2021 - 3:07 PM
Yeah, that was the problem, thank you.
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text