asp-classic - ADODB.Stream 错误 '800a0bbc' 写入文件失败

标签 asp-classic adodb

我在更改托管服务提供商时显示奇怪的错误:

ADODB.Stream error '800a0bbc'

Write to file failed.

/cp/portal_upload.asp, line 63



我提供了所需的权限,它解决了更新 Access DB 问题,但文件上传仍未修复。

这是代码,提前致谢:

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

最佳答案

首先检查是path & fileItem有效地址?
如果未创建文件夹,请创建它。
此外,请重新检查您的权限。你给了吗IUSR “完全控制”的权限?检查那些。

关于asp-classic - ADODB.Stream 错误 '800a0bbc' 写入文件失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16652896/

相关文章:

vbscript - 附加到内容类型的 ServerXMLHTTP

asp-classic - ADODB.Field 错误 '800a0bcd'

asp-classic - Mailchimp RESTful API 3.0 HTTP 基本身份验证

c++ - ADODB/C++ : What does "Execute" return when single value is returned?

asp.net - runat ="server"img src=~/img/ex1.png"在 ASP 中工作还是仅在 ASP.net 中工作 | 相对于包含中的绝对路径

javascript - JavaScript 变量声明中的 If 语句

c# - C# 中的 ADODB 内存泄漏

java - 建议使用外部 ODBC 访问的嵌入式数据库?

PHP 数组按 ID 分组

php adodb 和 fckeditor