[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。
发表人 主题:班级资料添加UBB标签错误和上传照片错误!

身份:user
发帖:1
登陆次数:0
1F 发表于 2005/8/18 13:38:52
班级资料添加 UBB标签 错误!

上传照片错误
SoftArtisans.SAFile.1 error '80020009' 

Error occurred when moving cached file to final destination. Please check the NTFS permissions for the directory "C:\WINDOWS\TEMP\" and the directory containing the file "D:\web\client\xxku\wwwroot\txl\upfile\2005818155323387.jpg". These directories require Read, Write and Delete permissions by the anonymous user ( NT account: IUSR_computername ) as well as for your authenticated users. 

/txl/photo_savephoto.asp, line 151 




嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3217
2F 发表于 2005/8/19 0:01:53
1。班级资料添加 UBB标签 错误!
这个的UBB我没有改呢,你自己先改吧,就改成和班级留言那里一样的就行了。

2。看下你的upfile目录有没有写权限。如果是虚拟主机的话,用ftp登陆,右键察看那个目录的chmod,修改成777就行,就是三个都打勾。


嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3217
3F 发表于 2006/6/28 5:58:17
http://support.softartisans.com/kbview_36.aspx

http://support.softartisans.com/kbview_984.aspx

唉,没搞明白,应该是服务器设置的问题

fang
身份:user
发帖:1
登陆次数:1
4F 发表于 2008/4/9 16:41:33
<!--#include file='fileconfig.asp'--> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<meta name="Keywords" content=""> 
<meta name="Author" content="haiwa"> 
<title>Upload</title> 
<style> 
<!-- 
* {font:12px;} 
--> 
</style> 
</head> 
<body> 
<% 
'On Error Resume Next 
Server.ScriptTimeOut=999999 
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp") '--建立SA_FileUp Object
upFileSize=1024*200
if request("act")="upload" then 
dim folder,savepath 
savepath="/sitemanage/ProductModule/fileup/"
'savepath="/sitemanage/fileup/"
CreateFolder(savepath) 
if errMsg="" then '----如果到此还没有错误
 For Each strFormElement In oFileUp.Form
   If IsObject(oFileUp.Form(strFormElement)) Then '如果是文件
     If Not oFileUp.Form(strFormElement).IsEmpty Then '--文件不为空
       flagOK=1
    '--不是文件或文件大于限制,设置错误信息
       If oFileUp.Form(strFormElement).TotalBytes<100 Then
         flagOK=0
       ElseIf oFileUp.Form(strFormElement).TotalBytes> upFileSize Then
         flagOK=0
         errMsg=errMsg+"文件:"&oFileUp.Form(strFormElement).UserFileName&" 大于"&upFileSize\1024&"KB!"
       Else
         strShortFileName = mid(oFileUp.Form(strFormElement).UserFileName,InStrRev(oFileUp.Form(         strFormElement).UserFileName, "\")+1) '取得文件名
         strExtension = Mid(strShortFileName, InStrRev(strShortFileName, ".")) '取得扩展名
         '======检查后缀名====
         Select Case LCase(strExtension)
           Case ".jpg", ".gif", ".bmp",".png"
         Case Else
           flagOK=0
           oFileUp.Form(strFormElement).Delete
           Response.Write("错误: 扩展名为 <I>" & strExtension & "</I> 的文件不能被上传。<BR>")
         End Select
       End If 'end if 文件大小判断
       
       If flagOK=1 Then '如果文件通过检查,保存文件,并插入数据库纪录
         randomize
         ranNum=int(900*rnd)+100
         filename=year(now())&month(now())&day(now())&hour(now())&minute(now())&second(now())&ranNum&LCase(strExtension)
         '让文件名不重复,保存文件,这里用的是SaveInVirtual方法
         oFileUp.Form(strFormElement).SaveInVirtual savepath&filename 
         '--输出服务器上的文件路径
         Response.Write "输出服务器上的文件路径:"&oFileUp.Form(strFormElement).ServerName & "<BR>"
         '--输出客户端的文件路径
         Response.Write "<BR>输出客户端的文件路径:"&oFileUp.Form(strFormElement).UserFileName & "<BR>"
         
         '--输出该文件的大小
         Response.Write "上传文件的大小:"&(oFileUp.Form(strFormElement).TotalBytes\1024) & "KB<BR>"
         FileSize=oFileUp.Form(strFormElement).TotalBytes
    
       End If
     Else
       Response.Write strFormElement & "对象为空!"
     End If '--end if 对象为空
  End If '--end if 是否是文件
 Next
 Set oFileUp = Nothing '删除此对象
end if '--end if 没有错误信息

'如果有错,输出错误信息
if errMsg<>"" then
  response.write ""&errMsg
  response.write "<br>"&"<INPUT type='button' onClick='history.go(-1)' value='返回'>"
else
  response.write "<br>"&"文件上传成功!"
  Response.Write("<script>opener.window.myform.smallpic.value='"&filename&"'</script>")
  Response.Write("<script>window.close()</script>")
end if
else 
%> 
<SCRIPT> 
function ShowProgress() 

  var isselectpic=false;
  var filepath=document.fileForm.file1.value;
  if(filepath!="")
  {
    if(isPic(filepath)==false)
      {
        return false;
      }
      isselectpic=true;
      return true;
  }
  if(isselectpic==false)
    {
    alert("请从硬盘选择你要上传的图片文件...");
    return false;
    }
}
function isPic(filepath)
{  
  var ExtList=".jpg.gif.bmp.png";
  var the_ext=filepath.substr(filepath.lastIndexOf(".")+1).toLowerCase();
  if(ExtList.indexOf(the_ext)==-1){
    alert("提示:文件不是图片,请选择图片文件!");
    return false;
    }
  return true;
}
</SCRIPT> 
<FORM NAME="fileForm" method="post" ENCTYPE="multipart/form-data" ACTION="uploadfile.asp?act=upload" OnSubmit="return ShowProgress();"> 
<INPUT NAME="file1" TYPE="FILE" SIZE="30"> <input name="Submit" type="submit" value="上 传"></FORM> 
<%end if%> 
</body> 
</html>

错误:
SoftArtisans.SAFile.1 错误 '80020009'

Error occurred when moving cached file to final destination. Please check the NTFS permissions for the directory "C:\WINDOWS\TEMP\" and the directory containing the file "e:\vhost\artmagicchina\wwwroot\sitemanage\ProductModule\fileup\20084916821102.jpg". These directories require Read, Write and Delete permissions by the anonymous user ( NT account: IUSR_computername ) as well as for your authenticated users.

/sitemanage/ProductModule/fileup/uploadfile.asp,行 54 

出现这个错误,怎么处理呀?  楼主您的问题解决了吧?

嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3217
5F 发表于 2008/4/9 18:14:20
在e:\vhost\artmagicchina\wwwroot\sitemanage\ProductModule\fileup\这个目录上,
给“IUSR_机器名”用户添加写入权限。

如果是买的空间,让空间商来做就行。

一般买的空间,整个wwwroot好像都是可写入的。

 
标题:
消息图标:                                             
                                            
正文:



* UBB 代码开启

 
CopyRight © 心缘地方 2005-2999. All Rights Reserved