Click here to Skip to main content
15,896,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
File uploaded path getting different when i uploaded from localhost and deployment url.

Ex:When I upload from local host,

file saving in DB like this,

~/uploads/testFile.doc

When I upload using deployed url,

c:/website/uploads/testFile.doc file saving like this,
Posted
Comments
Post the code where you are taking the Path and saving to DB.
Prasad Avunoori 3-Jul-14 3:14am    
Can you please post your server.mappath()code?

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