Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can anyone help me!! I am unable to upload image file(.jpg) to web server containing a folder myaccount/images/ using asp.net.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 6-May-13 0:56am    
Not a question. What did you try? Why did it fail?
—SA
Mannava Siva Aditya 6-May-13 1:23am    
I need to explain from starting. I am writting an uploading image application by accessing two different application which exist in two different servers.

I am able to interact between two different servers. From one application we would be passing an ID and it captures in another application and based on the ID value I am able to fetch data such as Name, Contact, Emmail and Image.
Note: Images are stored in server mannually - here i wanted to automate that process. I am able to retrieve the images but I am not able to upload the image.

Hope you are clear with the question?
Sergey Alexandrovich Kryukov 6-May-13 1:52am    
In fact, not more than before. You got two answers, develop accordingly.
—SA
Thanks7872 6-May-13 0:56am    
what do you mean by I am unable to upload image file(.jpg) to web server? What have you done?Is there any error?
Mannava Siva Aditya 6-May-13 1:30am    
I havn't been getting any error or exception only thing is the image when i m uploading it its not able to upload the image.

Uploading files is one of the most basic chores. The type of the file does not really matter. Please see:
http://msdn.microsoft.com/en-us/library/aa479405.aspx[^].

—SA
 
Share this answer
 
Refer to the link below

How to upload a file to a Web server in ASP.NET. Implement it according to your needs.
 
Share this answer
 
We need to set up Write permissions on the folder where that we are uploading the images. Assign write permission to IIS_User.

[Or]

Just add one important thing that is make sure we have to give domain user in given web.config tab. because that have share folder permission and also add that domain user in the user group of web server. User group having all relavant permissions related to application process, so we dont need to specially give any permission. we just need to take care about the shared folder permission.
 
Share this answer
 

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