Upload File Path Conflict

Posted by Learningtorise under ASP.NET on 5/3/2013 | Points: 10 | Views : 901 | Status : [Member] | Replies : 3
I have a file Upload control that gives me a path which points to a file in Client's Local Folder.....

But after Publishing same project in IIS. I need to get that file using same File Path which is pointing to Client's Local Folder.

Is there any way to do this ????

http://hashtagakash.wordpress.com/


Responses

Posted by: Learningtorise on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
I have created an Upload Module in my WebSite. The file Upload control tag is like this : <input type="file" name="picUpload" /> (Notice: no runat="server")

I have given a provision to add another File Upload Control on click of a button.

On Save button in Code behind i am retrieving Upload Control using Request.Form.GetValues("fileUpload"). But this returns String(File Path of selected file).

This works fine when i run my website in Visual Studio

But after publishing this application on server 133. suppose file is at "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Sunset.jpg", but it finds the file in my server 133 and not in Client's PC !!

http://hashtagakash.wordpress.com/

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
Help me !!!!!!!!

http://hashtagakash.wordpress.com/

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 5/16/2013 [Member] Starter | Points: 25

Up
0
Down
.

http://hashtagakash.wordpress.com/

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response