Dropbox API Saver and Chooser Tutorial

Dropbox API Saver and Chooser Tutorial

Dropbox API Saver and Chooser Tutorial

Are you into being on the go and using email as a way to keep valuable data safe (“in the ether”), or used as a backup, until you get to your destination? Today, after yesterday’s Dropbox API Chooser Primer Tutorial, we continue our discussion regarding alternatives to email with the excellent Dropbox functionality, and today delve further into its API. Let’s just reiterate, below, a discussion (by Wikipedia) of Dropbox.

Dropbox is a file hosting service operated by Dropbox, Inc., that offers cloud storage, file synchronization, and client software. Dropbox allows users to create a special folder on each of their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications.

Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]

Dropbox provides client software for Microsoft Windows, Mac OS X, Linux, Android, iOS, BlackBerry OS and web browsers, as well as unofficial ports to Symbian, Windows Phone, and MeeGo.

Well, Dropbox has the added dimension of maintaining an API including …

  • a chooser … like “browser” or “download” (to you, the client)
  • a saver … like “save as” or “upload” (to Dropbox)
  • a business API “core functionality” (for business usage purposes)

Building on yesterday’s Dropbox API Chooser Primer Tutorial as shown below, today we explore the “saver” and the “chooser” (in the mode of “JavaScript” (but please note you can also get support for “iOS” and/or “Android” mobile functionality)), by getting the “saver” functionality to help us upload files to the Dropbox and the “chooser” functionality to be able to show those uploaded files, and .doc* and .pdf and .txt (this .txt “extra” we did by changing dropboxChooser.html).

We’ve been trying to keep the server side out of consideration to simplify the situation, but, with uploading, if you don’t resort to Ajax ideas, which we aren’t doing here today, you may need a way to tell that someone is not uploading some huge file, so we have some PHP introduced today to check for this as you’ll see with our very simple PHP source code you could call dropboxSaver.php … if you want to undo this PHP, perhaps because you have no PHP, look for any code referencing the “iframe” HTML element called “myiframe” to not have this check for file size be operational.

You can see all this in action by viewing today’s tutorial and/or you can view our HTML/JavaScript source code you could call dropboxSaver.html and/or you could try a live run.

Hope you really get something out of the excellent Dropbox and its powerful functionality … more powerful than this we hope … chortle, chortle.


Previous relevant Dropbox API Chooser Primer Tutorial is shown below.

Dropbox API Chooser Primer Tutorial

Dropbox API Chooser Primer Tutorial

Are you into being on the go and using email as a way to keep valuable data safe (“in the ether”), or used as a backup, until you get to your destination? Today, we finally get back to continue our discussion regarding alternatives to email with the excellent Dropbox functionality, and today delve into its API, “dipping our toes” so to speak … because “there is more” (no, not “steak knives”). Let’s just reiterate, below, a discussion (by Wikipedia) of Dropbox.

Dropbox is a file hosting service operated by Dropbox, Inc., that offers cloud storage, file synchronization, and client software. Dropbox allows users to create a special folder on each of their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications.

Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]

Dropbox provides client software for Microsoft Windows, Mac OS X, Linux, Android, iOS, BlackBerry OS and web browsers, as well as unofficial ports to Symbian, Windows Phone, and MeeGo.

Well, Dropbox has the added dimension of maintaining an API including …

  • a chooser … like “browser” or “download” (to you, the client)
  • a saver … like “save as” or “upload” (to Dropbox)
  • a business API “core functionality” (for business usage purposes)

Building on DropBox Primer Tutorial as shown below, today we explore the “chooser” (in the mode of “JavaScript” (but please note you can also get support for “iOS” and/or “Android” mobile functionality)), and it’s great … there are no other words for it … the way you can segment functionality by file extension is “just the bee’s knees” in my humble opinion. Maybe you’ll agree, and you can see it in action by viewing today’s tutorial and/or you can view our HTML/JavaScript source code you could call dropboxChooser.html (with which, in the code, you can see that we disallow *.jpg (image) (but we show that they can work in the tutorial) but allow *.doc* (Word documents) and *.pdf (Portable Document Format), via the one line of code going …

extensions: ['.pdf', '.doc', '.docx'], //, '.jpg'],

… cute, huh?) and/or you could try a live run (for *.doc* and *.pdf files).

Hope to see you again soon.


Previous relevant DropBox Primer Tutorial is shown below.

DropBox Primer Tutorial

DropBox Primer Tutorial

Are you into being on the go and using email as a way to keep valuable data safe (“in the ether”), or used as a backup, until you get to your destination? Or are you already using DropBoxes as an alternative to this … spoilsport! Never mind … “DropBox is an alternative to email.” So there, nyaaaaaargh. Guess a lot of people are using iCloud or Google Drive or other services for this same computer storage purpose at a bigger level. Below is a definition of DropBox by Wikipedia.

Dropbox is a file hosting service operated by Dropbox, Inc., that offers cloud storage, file synchronization, and client software. Dropbox allows users to create a special folder on each of their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications.

Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]

Dropbox provides client software for Microsoft Windows, Mac OS X, Linux, Android, iOS, BlackBerry OS and web browsers, as well as unofficial ports to Symbian, Windows Phone, and MeeGo.

Enjoy the tutorial that shows some DropBox functionality here.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Networking, Tutorials and tagged , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

14 Responses to Dropbox API Saver and Chooser Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *