Re: Problem inserting images

  •  06-13-2006, 10:50 PM

    Re: Problem inserting images

    I am still stuck at the point mentioned above. Does anyone know if there's some further configuration I need to do, or some way of affecting permissions on the folder of that I've ftp'd to the Earthlink server to allow an upload?
     
    Below is the subroutine in include_upload.asp that trips it up, with the red line being line 119 (as in the error message in the screenshot above).
     
    Thanks in advance,
     
    Jim
     
    - - - - - - - - - - - - - - - - - - - -
     
     Public Sub SaveToDisk(sPath)
      Dim oFS, oFile
      Dim nIndex
     
      If sPath = "" Or FileName = "" Then Exit Sub
      If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
     
      Set oFS = Server.CreateObject("Scripting.FileSystemObject")
      If Not oFS.FolderExists(sPath) Then Exit Sub
      
      Set oFile = oFS.CreateTextFile(sPath & FileName, True)
      
      For nIndex = 1 to LenB(FileData)
          oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
      Next
      oFile.Close
     End Sub
View Complete Thread