Re: Error when uploading image

  •  03-07-2006, 1:18 AM

    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.
     

        
View Complete Thread