Results 1 to 3 of 3

Thread: ftp-upload with inet doesn´t work

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    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

  2. #2
    Guest

    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

  3. #3
    New Member
    Join Date
    Apr 2001
    Location
    HYDERABAD
    Posts
    12
    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)
    %>
    sagar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width