Do we have any V2 APIs for box.com which will allow me to upload a folder structure?
I have a folder with the below structure:
main_folder
sub1_folder (Has sub1_file1 and sub1_file2)
sub2_folder (Has sub2_file1 and sub2_file2)
I want to upload 'main_folder'. main_folder has been created on my computer.
Unfortunately, there isn't a way of uploading an entire folder. You will need to recursively walk through "main_folder" and manually create child folders and upload files as you go.
Related
I'm googling and debugging for days now, and did not find a solution, how to access all files on google drive in the folder created by my application.
I'm using v3 API with non sensitive permission drive.file. This means I can create folders, and create and list files in it. But I only see (list) files which were created by the application. If the user copies some other file into the folder created by the application, it is invisible for the application, and I did not manage to set permission either on the web client, nor in the application.
I don't want to set all files permission to my app, since I don't want to access anything in the user's drive, just in my folder, but there I would like to see also files, the user copied there.
The files are settings/schema export of my application, which the user might move between users with different google account.
Is it possible? How could I list all files in the app data folder? Is there a way to share a file with an application on google drive? Can the user do it manually (like copy the file there, and then set some kind of permission to the application, so it can list/download that file)
Thanks!
I would also like to pull from Dropbox, Box, and iCloud Drive. If there is no way, I will try to work around it but I was just wondering. I would like to be able to see the whole drive (all files and folders accessible). Thanks.
Depending on what you exactly are looking to do, you can use Google Drive's API to create/open files on your Drive for a serious project. If you are just experimenting with an idea, you can host your site directly from Google Drive.
To display all the files including folders, use Files.list. If you want to specify which type of file you want to show, check Search Files.
To know more about working with folders and filepaths check Work with Folders
I want to download multiple files in zip format from my BOX account by BOX API. Is it possible? Or should we download multiple file calling the api multiple times?
It's currently not possible to download a folder as a Zip through the Box API.
To download all the files in a folder, you would first have to get a list of the files in a folder by calling the Get Folder's Items endpoint. Then you would have to call the Download File endpoint for each of the files.
I am working on a Chrome App where I need the users to open files in a directory. For his own files, I can offer them a dialog through
chrome.fileSystem.chooseEntry
which works well. However that seems to limit me to the "Downloads" directory and Google Drive on my Chromebook. I would also like to ship some files with the application itself, so the files/folders would be located inside the app package. Is it possible to access these files through the fileSystem API?
I would not need the user to choose the files from a dialogue, it would be enough if I could get a handle to these files and offer to display them on the click of a button through my app.
Thanks in advance
You can read included files using chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) {})
Is it possible to upload files to a cloud storage folder for which I have only the shared link with edit permissions? I want to do this from my application, from code, so I'm interested in an API. I've looked into SkyDrive, GoogleDrive and DropBox APIs but I can't find a solution for this scenario in the API references.
It's fine if I have to sign in through the API with a user account to be able to upload the files to the shared link but I need to allow any user that has the link to upload files to that location.
Have I missed anything in the above mentioned APIs or are there any other cloud storage services which supply a solution for my needs?
Yes it is possible.
These are the steps I just took to verify.
User-A creates a folder called 'shared folder'
User-A makes that folder publicly writeable
User-A passes the shared URL to User-B. The key part of the URL is the id=1bxxxxxxx
User-B goes to https://developers.google.com/drive/v2/reference/files/insert#try-it
... where he authenticates himself
... creates a request body containing parent: "id_from_step_3"
... Executes the upload
The result is that User-B has created a file in the folder 'shared folder'
I think you have got your self in a tangle.
Through a shared URL
When someone gives you a URL to view and indeed edit a file that is purely for that file. You can't therefore upload files that way. You can share folders however very easily. https://support.google.com/drive/answer/2494822?hl=en https://www.dropbox.com/help/19/en
As for the API directly I can't really help you I am affraid