dropbox

iPhone DropBox API: How to load a file?

断了今生、忘了曾经 提交于 2019-12-03 05:19:52
问题 A very basic question concerning dropBox integration into an iPhone app. I followed the setup of the DropBoxSDK and everything works fine. I can log on to my account and get it linked. So I set up everything correctly. Now I would like to use it to simply load a file from the dropBox and save it again. Consider that you only want to sync ONE FILE (for the sake of simplicity), called 'example.txt' which is located in the 'Example' folder in my DropBox. The same 'example.txt' is saved locally

Unsync'd Git Repository in Dropbox

一世执手 提交于 2019-12-03 04:23:35
I have a git repository (and working directory) that is stored in my Dropbox so I can move back and forth between computers without having to commit or stash (read: without any effort at all). This is working great except for one minor annoyance that is becoming a major annoyance. Every so often, I'll leave one computer in a fully committed state only to pick up on the other computer and find that a git status reports changes. Inevitably, those changes are related to permissions. What I'm not sure about is why ? I assumed that it might be related to how Dropbox writes files on sync'd computers

Launch Dropbox from my app Android

拈花ヽ惹草 提交于 2019-12-03 04:07:09
I want to call the dropbox app in my app Android using the Intent. What I have to do??? Thanks!! Try using PackageManager and getLaunchIntentForPackage() with the package name for DropBox, i.e com.dropbox.android . You will get a PackageManager.NameNotFoundException if Dropbox isn't installed. If what you want is to share a file by lauching dropbox , you can use ACTION_SEND : Intent intent = new Intent(Intent.ACTION_SEND); startActivity(Intent.createChooser(intent, "title"); you can also send a specific file : Intent intent = new Intent(Intent.ACTION_SEND); intent.setType(fileType); intent

Retrieve contents of a public Dropbox folder?

Deadly 提交于 2019-12-03 03:10:56
Is there a way to retrieve a list of the contents of a public Dropbox folder (preferably in PHP)? This is what a URL to a public file in Dropbox looks like: http://dl.dropbox.com/u/1234567/publikPholder/textytext.txt One would think that jumping up one level to the directory in the URL... http://dl.dropbox.com/u/1234567/publikPholder/ ...would show all the public files. Nope. Nothing but a 404. Looks like this library is pretty complete (although I haven't used it myself), and is probably as simple as (post-auth): $info = $dropbox->getMetaData('Public', true); print_r($info['contents']);

Using iOS Dropbox SDK to do a Chunked Upload of Core Data

纵饮孤独 提交于 2019-12-03 00:29:35
I have an iOS app that uses Core Data for persistent data storage. I integrated Dropbox as a way for users to perform a a backup of the persistent store file (appname.sqlite). A UIButton calls a method to see if a file already exists on Dropbox: if([[DBSession sharedSession]isLinked]) { NSString *folderName = [[self.dateFormatter stringFromDate:[NSDate date]] stringByReplacingOccurrencesOfString:@"/" withString:@"-"]; NSString *destinationPath = [NSString stringWithFormat:@"/GradeBook Pro/Backup/%@/",folderName]; self.metadataIndex = METADATA_REQUEST_BACKUP; [self.restClient loadMetadata

Using Dropbox's zxcvbn password strength estimator

安稳与你 提交于 2019-12-03 00:24:00
I'm trying to get zxcvbn, Dropbox's password strength estimator , to work right... but I'm having some issues! I've included the asynchronous loader. My next problem is that I don't know enough JS to figure out how to actually use this thing.... <input id="password" name="password" size="35" class="textInput required" type="password"> is it used as some kind of monitor on that field? Thanks for the help, I'm still learning JS/jQuery... <input id="password" name="password" size="35" class="textInput required" type="password"/> <div id="result"> Laaa laa laa... </div> $('#password').keyup

File upload failed while uploading into dropbox in iOS in CoreApI

余生颓废 提交于 2019-12-02 22:47:36
问题 I'm failing to upload files into dropbox in iOS in CoreApI I'm getting this message [WARNING] DropboxSDK: error making request to /1/files_put/sandboxsandbox/helloworld.txt - (400) Expected 'root' to be 'dropbox', 'sandbox', or 'auto', got u'sandboxsandbox' 2013-12-04 18:23:57.348 DropBoxCore[4914:907] File upload failed with error - Error Domain=dropbox.com Code=400 "The operation couldn’t be completed. (dropbox.com error 400.)" UserInfo=0x22b1d7f0 {sourcePath=/var/mobile/Applications

How does Dropbox work? [closed]

怎甘沉沦 提交于 2019-12-02 22:10:32
How does Dropbox work? Is it just an FTP client with an easy-to-use web interface and support for many plarforms? What makes it so useful to programmers, even for those who are working on web-based applications and who have FTP access to a server by default? Does Dropbox come with an improved algorithm to facilitate file transfer for a better speed? What is the difference between an FTP client and Dropbox from a programmer's point of view? Jono FTP is just a way of copying files. And copying is not the same as synchronizing, which I believe is Dropbox's biggest strength. Dropbox is a multiway

Download a file in Dropbox using asp.net mvc

一个人想着一个人 提交于 2019-12-02 18:52:15
问题 I'm using asp.net mvc 4 and dropbox-api to download a file from my dropbox account. I've successfully installed the api in my project and I'm following this tutorial to understand the functionalities but I'm getting an error if I run, Specified argument was out of the range of valid values. Parameter name: path Here are my codes, public async Task<ActionResult> DropDls() { var dbx = new DropboxClient("MY-TOKEN"); string folder = "My Folder"; string file = "My File.rar"; using (var response =

Use curl to download a Dropbox folder via shared link (not public link)

倾然丶 夕夏残阳落幕 提交于 2019-12-02 18:46:32
Dropbox makes it easy to programmatically download a single file via curl (EX: curl -O https://dl.dropboxusercontent.com/s/file.ext ). It is a little bit trickier for a folder (regular directory folder, not zipped). The shared link for a folder, as opposed to a file, does not link directly to the zipped folder (Dropbox automatically zips the folder before it is downloaded). It would appear that you could just add ?dl=1 to the end of the link, as this will directly start the download in a browser. This, however, points to an intermediary html document that redirects to the actual zip folder and