c# - File structure for storing pictures and files ASP.NET MVC -


i trying build directory structure based on object names , values hold pictures , files, seeding data db , have create option table in question. place in project write code make least fragile?

if creating directory store files in is part of global application initalization, i'd recommend check if directory exists , create if doesn't in application_start() in global.asax.cs.

also note adding/changing files asp.net site during runtime causes application restart (the idea can update config file, or aspx.cs file , change take effect). data files don't want behaviour, make sure place files under special app_data directory meant data.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -