4
我已經當我改變託管服務提供商是奇怪,奇怪的錯誤顯示:ADODB.Stream錯誤「800a0bbc」寫入文件失敗
ADODB.Stream錯誤「800a0bbc」
寫入文件失敗。
/cp/portal_upload.asp 63行
我給需要的權限,它解決了更新Access數據庫的問題,但文件上傳還是不固定的。
這是代碼,在此先感謝:
Public Sub Save(path)
Dim streamFile, fileItem
if Right(path, 1) <> "\" then path = path & "\"
if not uploadedYet then Upload
For Each fileItem In UploadedFiles.Items
Set streamFile = Server.CreateObject("ADODB.Stream")
streamFile.Type = 1
streamFile.Open
StreamRequest.Position=fileItem.Start
StreamRequest.CopyTo streamFile, fileItem.Length
streamFile.SaveToFile path & fileItem.FileName, 2 'This is line 63
streamFile.close
Set streamFile = Nothing
fileItem.Path = path & fileItem.FileName
Next
End Sub
也許路徑無效。做一個'Response.Write(「路徑是:」&path&fileItem.FileName&「
」)'併發布你得到的結果。 –