Search code examples
c#asp.net.netclean-architecture

Where should I put uploaded files on a Clean Architecture project?


Woudn't be on the Infrastructure Layer? But how could I access this files? Generally, static files would be in wwwroot, in Web or API project, right? Then how could I get this files if they are in another project? Or should I create an assets folder inside Infrastructure project? Or should I access folders on the file system in the server?


Solution

  • I believe the best place to put an upload folder is in the project root:

     - src
       - <project files> 
     - uploads # put your files here