Error when uploading image

Last post 03-12-2006, 11:20 PM by Adam. 6 replies.
Sort Posts: Previous Next
  •  03-06-2006, 2:59 PM 16765

    Error when uploading image

    I get a vb compilation error when trying to upload an image.
    filepost.asp line 141 expected end of statement.
     
    Response.Write "<script language=javascript>var OxOe890=["\x22 \x26 FilePath \x26\x22/\x22 \x26 File.FileName \x26 \x22","\x22\x26FilePath\x26\x22"]; parent.UploadSaved(OxOe890[0x0],OxOe890[0x1]) ;</script>"
     
    basically it doesnt like the quotes, if I double them up, then it uploads the file, but the name is wrong in the insert menu.
     
     
  •  03-07-2006, 12:50 AM 16776 in reply to 16765

    Re: Error when uploading image

    Well I fixed it by changing the line to
    Response.Write "<script language=javascript>var OxOe890=[""" & FilePath & "\" & "/" & File.FileName & """,""" & FilePath & """]; parent.UploadSaved(OxOe890[0x0],OxOe890[0x1]) ;</script>"
     
    but in general is sucks that I had to fix it.  I mean its a basic compilation error, which means the line could never have been run in testing.  Which means there probably isnt a formal testing process.  I own a startup software company, so I know the unfortunate problem of
     
    1. Developer Develops
    2. Developer Builds
    3. Developer Distributes
    4. Customer Reports the Error
    5. Customer Support Tells Programmer
    6. Goto Line 1
    Trust me, its a losing game, it gives you quick turn around, but horrible version control, and high regressive error problems.
     
    This isn't a very forgiving market.  If I wanted code I had to debug myself, then I would have picked up the free aynhtml open source project.  I was looking for something that was vendor supported, not just something I had to pay for.  I love the product by the way, and it was a little bug, but customers see things in black and white, it works or it doesnt, the scale of the error or the amount of code needing to be changed is irrelevent.
     
     
  •  03-07-2006, 12:53 AM 16777 in reply to 16776

    Re: Error when uploading image

    oops, that should have read I changed the line to
    Response.Write "<script language=javascript>var OxOe890=[""" & FilePath & "/" & File.FileName & """,""" & FilePath & """]; parent.UploadSaved(OxOe890[0x0],OxOe890[0x1]) ;</script>"
  •  03-07-2006, 1:18 AM 16778 in reply to 16777

    Re: Error when uploading image

    Ok, and this is mostly a please question, remembering the old addage and unfunded feature request is called a wish
     
    in the file include_upload.asp
     
    can you add the following lines
       sInputName=replace(sInputName," ","_")
       just below the line
       sInputName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
    and     
        sFileName=Replace(sFileName," ","_")
        just below the line
        sFileName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
        
    That way if there are spaces in the filename (the most common culprit on an invalid name), they will be replaced with underline characters.  Otherwise, I will have to keep changing the underlying source file everytime there is a new release.  I suspect that there are other users who will find this feature helpful.
     

        
  •  03-09-2006, 3:52 PM 16903 in reply to 16765

    Re: Error when uploading image

    try using a single quote instead
     
    RC
  •  03-09-2006, 10:44 PM 16929 in reply to 16776

    Re: Error when uploading image

    Thanks kconner, you solved one of the problem I have with version 5.1
     
  •  03-12-2006, 11:20 PM 17077 in reply to 16929

    Re: Error when uploading image

    Guys,
     
    Please download the controla again and replace the filepost.asp.
     
    This bug is created when encrypting the filepost.asp.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML