Click here to Skip to main content
16,011,784 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friend

can you tell me how to fix this problem.

validate the extension of uploaded file with white list of
file extensions before moving it to the relevant folder (Photos,
Order_Circulate etc.) and also remove the execute permissions on the
folders where the files are getting uploaded.
Posted
Comments
[no name] 20-Sep-13 7:12am    
Fix what "problem"? You did not describe any kind of a problem to fix.

1 solution

I would probably create a DataTable object that holds a list of extensions and which folder they are supposed to go into. Then I would loop through the list of files, look up in the DataTable where they are supposed to go, and move them to that location.

As for your permissions questions...try google[^].
 
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