Download file in all browser which store on (google cloud storage) with url in js - google-cloud-storage

After uploading a file to a GCS bucket, that is publically readbale, when I access the file directly (https://storage.googleapis.com/my_bucket/test/documents/business/4lS49Z1gVJ-km#9be-LOADMAXChatbot.png) the browser (Chrome) downloads the file, instead of displaying it.

Related

How to upload a file to pythonanywhere using react native?

I am trying to build an app through react-native wherein I need to upload a JSON file to my account folder hosted on pythonanywhere.
Can you please tell me how can I upload a JSON file to the pythonanywhere folder through react-native?
The web framework that you're using will have documentation about how to create a view that can accept filee uploads. Then you can use the fetch API in your javascript to send the file to it.

Can I read from a private google cloud storage bucket from the client frontend

I have a cordova app running on android with a spring boot backend.
In the app the client can upload a photo.
At the moment the file is uploaded to google cloud storage via the backend, who has a service credentials file.
When we want to display a photo in the app should the photo be read from google cloud platform via the spring boot app?
Or can we read directly from the google cloud bucket, (in this case how do we authenticate)?
I would say it's simplest to read the data from GCS in the Java code, and then serve the data from your application.
An alternative you could consider is to generate a signed URL in your backend; the client can then use that signed URL to fetch the data. The Google Cloud Storage client library should make generating the signed URL fairly straightforward. You'll want to regenerate each time the client loads a page of photos though, as signed URLs (deliberately) have a limited lifespan.

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 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

Download files from Dropbox shared folder using 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.