secure file storage

Apr 19, 2016 at 2:50 AM
Hello,
I am new to OrchardCollaboration:
When a file is uploaded, is it available via a direct link (public) or do you have to login to view it - with the correct permissions (private)?

Is there a way to select either one?

Cheers!
Coordinator
Apr 23, 2016 at 4:22 AM
Hi, the uploaded files have been stored in the /media/uploads folder. OC doesn't provide any direct link to any file there, but the user can access the files directly by knowing the guid of the ContentItem and building the url himself/herself.

This can be restricted by adding the following config to the media folder.
<configuration>
<system.webServer>
   <security>
      <requestFiltering>
           <hiddenSegments>
               <add segment="My_Directory" />
           </hiddenSegments>
       </requestFiltering>
   </security>
</system.webServer>
</configuration>

Regards,
Siyamand