Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
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.
Posted
Comments
Sandeep Mewara 8-Apr-11 6:47am    
This is the third copy of something similar asked.

Can you please keep it at one place and avoid reposts please?

1 solution

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.
 
Share this answer
 
Comments
Ankur\m/ 11-Apr-11 2:34am    
[moved from answer]
OP wrote:
document.getElementById('ctl00_InnercontentBody_ImgCmpny').src = "http://localhost/tnpda/ImageDIR/" + args.get_fileName();

how do i use server.mappath('image');?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900