Click here to Skip to main content
15,900,482 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I upload a photo using c#.It successfully uploaded on server.but it is not displayed on front. when i give a permission of folder where this images is uploaded and refresh page then it is displayed.

but when i changed or uploaded other file it does not displayed again. I repeat same flow as describe and it works fine.

So what is the solution to upload images and no need to give a permission of folder every time.

it works fine on my local pc.No need to give permission of folder every time

Thanks.
Posted
Comments
RaisKazi 21-Nov-11 22:56pm    
Are you sure? Check if your permissons are not getting reset by some service. Because once you applied Permissions to Folder it should be applicable for all your files.
Sergey Alexandrovich Kryukov 22-Nov-11 0:48am    
I also feel concerned about it. It could be something else.
--SA
RaisKazi 22-Nov-11 2:38am    
I am not sure to which Accounts you provided Permissions.

Try by providing Full-Permissions to "IIS_IUSRS" and "Network Services" Accounts in your Folder.

1 solution

Itz not a problem with folder permission; itz with the file permission.

I encountered the same problem. To find the root cause, right click on the specified file and go to properties. Under Security TAB, you need to have the access to EveryOne (at least read). Otherwise, you will have the permission problem at the server.

By default, you may have the access in the local PC; but not at server.
 
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