Download files from Dropbox shared folder using Dropbox API - dropbox-api

A friend sent me the URL of a dropbox folder he shared with me. This folder has files whose total size is about 8GB.
I have a basic account with 2GB limit, so I cannot add the shared folder contents to my dropbox folder.
How do I programmatically download all the files from the shared folder to my PC?
I checked the documentation (both v1 and v2) and didn't find any APIs that would do this. Am I missing something?

The current version of the Dropbox API, has endpoints for getting the metadata of shared links, as well as downloading files from shared links:
to get the metadata for a shared link: /2/sharing/get_shared_link_metadata
to download files from a shared link: /2/sharing/get_shared_link_file
The /2/sharing/get_shared_link_metadata endpoint unfortunately doesn't return the file listing though, so if you need to programmatically get the file listing for use with /2/sharing/get_shared_link_file, as a workaround you can use the API v1 endpoint /1/metadata/link.
Edit:
Dropbox API v2 now supports listing the contents of a shared link for a folder. This can be accomplished using the same interface as listing a folder in a connected user's account, via the list_folder functionality. To list the contents of a shared link for a folder, you instead provide the shared link URL in the shared_link parameter to /2/files/list_folder.
If you're using an official SDK, there will also be a corresponding method for this endpoint.

Related

Appservice deployment issue

Hi iam deploying my war file using azure appservice from azuredevops. deployment is getting completed successfully but when i hit the url Microsoft azure welcome page is displayed instead of application. can you please suggest a work around
In Azure Web Apps, the default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used. Refer File structure on azure to know more about the files and directories on Azure Web App.
You may check whether the deployed files are available or not using Kudu Console.
Also, make sure that your startup file (For ex: index.htm) is added to the default documents section as mentioned above. You can delete the remaining files if not required and see if that works.
For details , you can refer to this case.

Web link to local dropbox file

Is there a way to create a link (i.e that dropbox will redirect to a local file on my computer if the file is synced?
I run my own web server and each web page maps to a folder. i'd like to be able to create a link on that page that opens up that folder in explorer or finder?
thanks

What files to package Atlassian Connect Express Confluence Macro

I am trying to find what files to upload and where for my web confluence plugin. I know the atlassian-connect.json needs to be uploaded to an https:// location. Do I upload that project root direct in the same location as well as all the folders, or can I skip uploading the node_modules folder?
You need to host the whole app on a hosting platform that you choose, and yes that includes the atlassian-connect.json file. Once you upload it and have it running you can install it into your Confluence app using the url to your atlassian-connect.json file.
If you haven't already, you should go through the Getting Started guide on the docs. This will walk you through setting up an app and getting it running locally and installing a running app into Confluence.

What Permissions does a user need to upload content into AEM Mobile Cloud service from AEM

I have setup a package that I built on an AEM author instance running on my local machine. I have it connecting to the AEM Mobile on demand cloud service.
When I have my package uploaded to a hosted AEM author instance, where I am not able to log in as admin. When I load the mobile project I see an error that the cloud config path does not exist. And I also don't see the 'Upload Shared Resources' button and can't upload articles.
What paths and permissions on those paths does my user need to fix this?
I was able to track down the paths and the permissions needed on those paths.
For the cloud config does not exist error the user needs
read access to the cloud config path: /etc/cloudservices/dps2015
In order to upload the user needs
read access to /etc/contentsync
and
read, write, create, delete access to /var/contentsync
and
read access to /var

How do I exclude a sub folder/directory from the Azure Backup for an App Service?

How do I exclude a sub folder/directory from the Azure Backup for an App Service?
Our backup system seems to fail because this folder makes the site exceed the backup limit. So I'd like to exclude only that folder.
The website + database size exceeds the 10 GB limit for backups. Your
content size is 10 GB.
#AjayKumar-MSFT's link to Partial Backups works, but here's the details:
create a file called _backup.filter
list one directory or file per line
Upload _backup.filter file to the D:\home\site\wwwroot\ directory of your site
Example:
\site\wwwroot\Images\brand.png
\site\wwwroot\Images\2014
\site\wwwroot\Images\2013
You may filter out unnecessary files from the backup by Configuring Partial Backups. You can exclude static content that does not often change such as videos/images or unneeded log files (directories).
Partial backups allow you to choose exactly which files you want to backup.
Firstly I suggest you could check your app usage(Make sure your web app has already use 10GB). You can determine folder content size using the Azure Web Apps Disk Usage Site Extension.
You could follow this steps to see the disk usage:
Browse the Kudu site for your web app: https://sitename.scm.azurewebsites.net Click on Site extensions and then click on Gallery.
Search for Azure Web Apps Disk Usage site extension. Click on + icon to install the site extension.
Click run to start the Disk Usage Site Extension
If your web site is not exceed the 10GB. I suggest you could create a new service plan and move the your web app to the new service plan and test again. Maybe something wrong with the web app server.
If this still doesn't solve your issue. You don't exceed the 10GB but still show this error. I suggest you could create an Azure support request.
How do I exclude a sub folder/directory from the Azure Backup for an App Service?
As Ajay says, you could use Partial backups.