I am building app which in which i want to create folder under the app folder.
Hierarchy
app
--project1
--project2
Now i want to share project1 folder with user1 and user2.
At the same time project2 folder will be shared with user3 and user4.
I could not find any API. Can any body help?
The Dropbox API currently doesn't offer any calls for managing shares folders, and in addition, app folders are incompatible with shared folders. In this case, you'll need to use 'full access' and have the user manually manage the shared folders.
Related
I have a MERN app that I would like to deploy to render.com. I just have 2 quick questions:
Of all the tutorials that I have watched, they all have separate github repos - 1 for the frontend, 1 for the backend. So on render.com, they can simply choose the frontend or the backend repo when they want to deploy. However, my folder structure is not like this - mine is one main github repo, and inside that repo, there is 1 frontend folder and 1 backend folder. How do I go about solving this?
When I give render.com (or heroku, netlify, etc.) access to my github account, is it safe? Does this mean they will be able to read and change stuff in my github account?
Thanks in advance for your help
My repo has the same structure as yours, one frontend folder and one backend folder.
You need to create a new Web Service for your backend folder. When creating a new web service, just set the Root Directory to backend. When you're done with the other fields and deployed your backend, create a Static Site for your frontend. Set the root directory of your static site to frontend. Set Publish Directory to build.
Probably safe but I'm new to the service as well. I believe they are only using that to be able to pull your repositories so that you can select them on Render. And also, of course, for auto or manual deployment.
I have written a GitHub app that requests permissions for all repository contents.
The app basically reads a spec file that I created in order to do some custom logic.
The spec file can be located in any folder that the installer wants and therefore I ask for the elevated permissions.
For security reasons, I need the Github App to only have permissions to the specific file and not the entire repository contents.
Let's say I have 2 installations:
Installation one will request permissions just to some/path/to/folder/service.yml
Installation two will request permissions just to service.yml
I couldn't find any way to do so, not in the api of the installer, and not at the GitHub app level.
I thought about some workarounds using symlinks but it does not satisfy the requirement.
Every time I publish my project my folder permissons get removed. My project requires IIS APPPOOL\appPoolName and IUSR to have specific access right to specific folders.
Whats the best way to apply the folder permissons after the artifact has been published?
Not sure if totally get your point. You can use location elements in the web.config file, there is a lot of information on the web about that - this gives you a start: HOW TO: Control Authorization Permissions in an ASP.NET Application
Besides, for folder NTFS permissions here rather than web security permissions. You could also add a custom target to Visual Studio's web publishing pipeline. For detail ways please take a look at what Sayed Ibrahim Hashimi does here.
I have installed owncloud at a server.
https://cloudybox.tk
How can I restrict user to a specified folder.
Like, if a user signup, then he can access only to a folder named by his username.
So that i can start an online cloud storage website.
You should Nextcloud instead of Owncloud. It has more features, is more secure and fully open source. In Nextcloud you can put all users in one group and share a folder with this group. I think this is what you want.
When adding projects to TFS, I'll add a project for a specific website. This works fine, and all the folders and files within the root of the website are available in TFS. However, there are also shared files that are above the root of the website, and are not included in the specific website project/solution, since they reside outside the root of the website. For example, when I add existing files to a project, that are outside the root, it creates duplicates within the project. Or, when adding existing file to the project, it creates the wrong folder hierarchy in the project (appears as though the folder above the root is inside the website), which will result in problems with publishing and sharing source in TFS.
What is the appropriate way to include these files in the project, so that the files can remain outside the root, but be included in the project in TFS.
One way you might achieve this is by simply having one Team Project for all your websites, and logically break it up into different sites for backlogs/iterations/work items etc by using teams/areas. All your source code will be within the correct hierarchical structure within your one Team Project, and can then be shared between the subprojects within the Team Project.
See the following posts for a discussion of this approach:
Project of Projects with team Foundation Server 2010
When should I use Areas in TFS instead of Team Projects in Team Foundation Server 2010
One Team Project