异步文件上传错误 [英] Asynchronous file Upload error AfterPublished

查看:92
本文介绍了异步文件上传错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


发布或部署之前
-----------------------------------------
我们已经开发了一个名为TNPDA的项目.
因为我们已经使用了异步文件上传器.
我们已经上传了图像,然后将其存储到特定的文件夹中.我们指定了路径,例如localhost/tnpda/images/
它正常工作.

出版后
-------------------
发布并托管到网站后,我们已经更改了路径,例如www.stfgk.in/tnpda/imagefolder ...
当我上传文件时它不起作用.它显示以下错误.
文件路径d:\ webdata \ www.stfgk.in \ tnpda \ imgefolder访问被拒绝.
请帮我.

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.
File path d:\webdata\www.stfgk.in\tnpda\imgefolder access denied.
Pls help me.

推荐答案

该文件必须保存在磁盘路径中.不在网址路径中.如果项目文件夹中的图像文件夹,则使用Sever.MapPath("imagefolder")方法.也不是错误中的图像文件夹名称拼写错误.确保在路径中使用正确的拼写.
The file has to be saved in a disk path. Not in the url path. If the imagefolder inside your project folder then use the Sever.MapPath("imagefolder") method. Also not that in the error the image folder name spell wrongly. Make sure you are using correct spelling in the path.


这篇关于异步文件上传错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆