Webhost之后异步文件上传错误 [英] Asynchronous file Upload error After webhost
问题描述
发布或部署之前
-----------------------------------------
我们已经开发了一个名为TNPDA的项目.
因为我们已经使用了异步文件上传器.
我们已经上传了图像,然后将其存储到特定的文件夹中.我们指定了路径,例如localhost/tnpda/images/
它正常工作.
出版后
-------------------
发布并托管到网站后,我们已经更改了路径,例如www.stfgk.in/tnpda/imagefolder ...
当我上传文件时它不起作用.它显示以下错误.
服务器响应错误:拒绝访问路径``D:\ WEBDATA \ www.stroweger.in \ tnpda \ imagedir \ hh.jpg''.
您是否要查看响应页面.
,请问为什么要 ^ ]?
不只是重新发布,我还记得您已经评论了3次以上.对吧?
请避免转发.
========
现在,让我一劳永逸地阐明错误的含义以及可能的解决方法.
将文件上传到服务器时,您需要对要在用于上传文件的目录上处理请求的帐户具有适当的写许可权..
检查MSDN链接-文件上传控件安全注意事项部分 [^ ]
向用户(通常是ASPNET用户)或模拟呼叫的用户帐户提供写许可权.
Hi,
BEFORE PUBLISH OR DEPLOYMENT
-----------------------------------------
We have develop a project namely TNPDA.
In that We Have use asynchronous file uploader.
We have upload the images.then it will store into specific folder.We specify the path like localhost/tnpda/images/
It works properly.
AFTER PUBLISHED
-------------------
after published and hosted into website, We have change the path like www.stfgk.in/tnpda/imagefolder...
IT WAS NOT WORKING WHEN I UPLOAD THE FILE.IT SHOW THE FOLLOWING ERROR.
Server response Error:''Access to the path ''D:\WEBDATA\www.stroweger.in\tnpda\imagedir\hh.jpg'' is denied.
Do you want to see the response page.解决方案And may I ask why a repost[^]?
Not just repost, I remmember commenting you it''s more than 3 times now. Right?
Please avoid reposts.
========
Now, once and for all, let me clarify what error means and the possible resolution.
When you are uploading a file to the server, you need to have appropriate write permission to the account processing the request on the directory that you are using to upload the file.
Check the MSDN link - FileUpload Control Security Considerations section[^]
Either provide the write permission to the user (generally ASPNET user) or to the user account that is impersonating the calls.
这篇关于Webhost之后异步文件上传错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!