|
-
Mar 30th, 2001, 02:42 PM
#1
Thread Starter
Lively Member
I think there is one more event
hi,
i think there is an event in inet object , i don't
remember what it is.. but in that event you keep
on checking the return value..
See the help for INET object .. there should be
an example on it..
code runs something like this:
if (ret value) = STILL_EXECUTING then
else if (retval)= SECOND_CONSTANT then..
....
...
THERE ARE 12 CONSTANTS YOU HAVE TO CHECK
FOR RETURN VALUE ..
hope this helps..
sarath
-
Mar 31st, 2001, 12:01 AM
#2
i found it
hi,
well , i finally found why the inet didn´t work.
i seems that in the code line
inet1.execute , "PUT filename1 filename2"
filename1 needs to match the DOS 8.3-Name-Convention and to have the DOS-short-path-name
But the MSDN-Help doesn´t mention this..
thanks sarath for helping
-
Apr 3rd, 2001, 05:42 AM
#3
New Member
hai,
i have never used inet control to upload site but think this will work.
first page:fileupload.asp
<form enctype= "multipart/form-data" action="show.asp" method=post>
plese choose a picture to upload
<br><input name="picture" type=FILE ACCEPT="image/*">
<br><input type=submit value="submit me">
</form>
second page:show.asp
<%
formsize = Request.TotalBytes
formdata = Request.BinaryRead(formsize)
bnCRLF =chrB(13) & chrB(10)
divider = LEFTB(formdata,INSTRB(formdata,bnCRLF)-1)
datastart= INSTRB(formdata,bnCRLF & bnCRLF) + 4
dataend = INSTRB(datastart+1,formdata,divider)-datastart
Response.ContentType = "image/gif"
Response.BinaryWrite MIDB(formdata,datastart,dataend)
%>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|