{"id":13931,"date":"2015-04-05T05:04:35","date_gmt":"2015-04-04T19:04:35","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=13931"},"modified":"2020-04-15T13:35:25","modified_gmt":"2020-04-15T03:35:25","slug":"dropbox-api-saver-and-chooser-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/dropbox-api-saver-and-chooser-tutorial\/","title":{"rendered":"Dropbox API Saver and Chooser Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Saver\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Dropbox API Saver and Chooser Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Saver\/DropBox_Saver.jpg\" title=\"Dropbox API Saver and Chooser Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Dropbox API Saver and Chooser Tutorial<\/p><\/div>\n<p>Are you into being on the go and using email as a way to keep valuable data safe (&#8220;in the ether&#8221;), or used as a backup, until you get to your destination?   Today, after yesterday&#8217;s <a target=_blank title='Dropbox API Chooser Primer Tutorial' href='#dacpt'>Dropbox API Chooser Primer Tutorial<\/a>, we  continue our discussion regarding alternatives to email with the excellent <a target=_blank href='https:\/\/www.dropbox.com\/' title='Dropbox home'>Dropbox<\/a> functionality, and today delve further into its <a target=_blank href='https:\/\/www.dropbox.com\/developers' title='Dropbox API'>API<\/a>.  Let&#8217;s just reiterate, below, a discussion (by <a target=_blank title='Dropbox service information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Dropbox_%28service%29'>Wikipedia<\/a>) of Dropbox.<\/p>\n<blockquote><p>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.<\/p>\n<p>Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]<\/p>\n<p>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.<\/p><\/blockquote>\n<p>Well, Dropbox has the added dimension of maintaining an API including &#8230;<\/p>\n<ul>\n<li>a chooser &#8230; like &#8220;browser&#8221; or &#8220;download&#8221; (to you, the client)<\/li>\n<li>a saver &#8230; like &#8220;save as&#8221; or &#8220;upload&#8221; (to Dropbox)<\/li>\n<li>a business API &#8220;core functionality&#8221; (for business usage purposes)<\/li>\n<\/ul>\n<p>Building on yesterday&#8217;s <a target=_blank title='Dropbox API Chooser Primer Tutorial' href='#dacpt'>Dropbox API Chooser Primer Tutorial<\/a> as shown below, today we explore the &#8220;saver&#8221; and the &#8220;chooser&#8221; (in the mode of &#8220;JavaScript&#8221; (but please note you can also get support for &#8220;iOS&#8221; and\/or &#8220;Android&#8221; mobile functionality)), by getting the &#8220;saver&#8221; functionality to help us upload files to the Dropbox and the &#8220;chooser&#8221; functionality to be able to show those uploaded files, and .doc* and .pdf and .txt (this .txt &#8220;extra&#8221; we did by changing <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxChooser.html-GETME\" title='dropboxChooser.html'>dropboxChooser.html<\/a>).<\/p>\n<p>We&#8217;ve been trying to keep the server side out of consideration to simplify the situation, but, with uploading, if you don&#8217;t resort to Ajax ideas, which we aren&#8217;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&#8217;ll see with our very simple PHP source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxSaver.php-GETME\" title='dropboxSaver.php'>dropboxSaver.php<\/a> &#8230; if you want to undo this PHP, perhaps because you have no PHP, look for any code referencing the &#8220;iframe&#8221; HTML element called <i>&#8220;myiframe&#8221;<\/i> to not have this check for file size be operational.<\/p>\n<p>You can see all this in action by viewing today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Saver\/\" title='click picture'>tutorial<\/a> and\/or you can view our HTML\/JavaScript source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxSaver.html-GETME\" title='dropboxSaver.html'>dropboxSaver.html<\/a> and\/or you could try a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxSaver.html\" title='live run'>live run<\/a>.<\/p>\n<p>Hope you really get something out of the excellent Dropbox and its powerful functionality &#8230; more powerful than <a target=_blank href='http:\/\/www.jantoo.com\/cartoons\/keywords\/drop-box' title='Drop Box cartoons'>this<\/a> we hope &#8230; chortle, chortle.<\/p>\n<hr>\n<p id=\"dacpt\">Previous relevant <a target=_blank title='Dropbox API Chooser Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=13912'>Dropbox API Chooser Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Chooser\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Dropbox API Chooser Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Chooser\/DropBox_Chooser-34of.jpg\" title=\"Dropbox API Chooser Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Dropbox API Chooser Primer Tutorial<\/p><\/div>\n<p>Are you into being on the go and using email as a way to keep valuable data safe (&#8220;in the ether&#8221;), 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 <a target=_blank href='https:\/\/www.dropbox.com\/' title='Dropbox home'>Dropbox<\/a> functionality, and today delve into its <a target=_blank href='https:\/\/www.dropbox.com\/developers' title='Dropbox API'>API<\/a>, &#8220;dipping our toes&#8221; so to speak &#8230; because &#8220;there is more&#8221; (no, not <i>&#8220;steak knives&#8221;<\/i>).  Let&#8217;s just reiterate, below, a discussion (by <a target=_blank title='Dropbox service information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Dropbox_%28service%29'>Wikipedia<\/a>) of Dropbox.<\/p>\n<blockquote><p>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.<\/p>\n<p>Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]<\/p>\n<p>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.<\/p><\/blockquote>\n<p>Well, Dropbox has the added dimension of maintaining an API including &#8230;<\/p>\n<ul>\n<li>a chooser &#8230; like &#8220;browser&#8221; or &#8220;download&#8221; (to you, the client)<\/li>\n<li>a saver &#8230; like &#8220;save as&#8221; or &#8220;upload&#8221; (to Dropbox)<\/li>\n<li>a business API &#8220;core functionality&#8221; (for business usage purposes)<\/li>\n<\/ul>\n<p>Building on <a target=_blank title='Dropbox Primer Tutorial' href='#dpt'>DropBox Primer Tutorial<\/a> as shown below, today we explore the &#8220;chooser&#8221; (in the mode of &#8220;JavaScript&#8221; (but please note you can also get support for &#8220;iOS&#8221; and\/or &#8220;Android&#8221; mobile functionality)), and it&#8217;s great &#8230; there are no other words for it &#8230; the way you can segment functionality by file extension is &#8220;just the bee&#8217;s knees&#8221; in my humble opinion.   Maybe you&#8217;ll agree, and you can see it in action by viewing today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/Chooser\/\" title='click picture'>tutorial<\/a> and\/or you can view our HTML\/JavaScript source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxChooser.html_GETME\" title='dropboxChooser.html'>dropboxChooser.html<\/a> (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 &#8230;<br \/>\n<code><br \/>\n   extensions: ['.pdf', '.doc', '.docx'], \/\/, '.jpg'],<br \/>\n<\/code><br \/>\n&#8230; cute, huh?) and\/or you could try a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/dropboxChooser.html\" title='live run'>live run<\/a> (for *.doc* and *.pdf files).<\/p>\n<p>Hope to see you again soon.<\/p>\n<hr>\n<p id='dpt'>Previous relevant <a target=_blank title='DropBox Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3502'>DropBox Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"DropBox Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/DropBox\/DropBox_Primer-1of.jpg\" title=\"DropBox Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">DropBox Primer Tutorial<\/p><\/div>\n<p>Are you into being on the go and using email as a way to keep valuable data safe (&#8220;in the ether&#8221;), or used as a backup, until you get to your destination?   Or are you already using DropBoxes as an alternative to this &#8230; spoilsport!   Never mind &#8230; &#8220;DropBox is an alternative to email.&#8221;   So there, nyaaaaaargh.   Guess a lot of people are using <a target=_blank title='iCloud information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/ICloud'>iCloud<\/a> or  <a target=_blank title='Google Drive information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Google_Drive'>Google Drive<\/a> or other services for this same computer storage purpose at a bigger level.   Below is a definition of DropBox by <a target=_blank title='DropBox service inforamtion from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Dropbox_%28service%29'>Wikipedia<\/a>.<\/p>\n<blockquote><p>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.<\/p>\n<p>Dropbox, Inc., was founded in 2007 by Drew Houston and Arash Ferdowsi, as a Y Combinator startup company.[4]<\/p>\n<p>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.<\/p><\/blockquote>\n<p>Enjoy the <a target=_blank title='DropBox Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3502'>tutorial<\/a> that shows some DropBox functionality here.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3502' onclick='var dv=document.getElementById(\"d3502\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Networking\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3502' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d13912' onclick='var dv=document.getElementById(\"d13912\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=dropbox\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d13912' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d13931' onclick='var dv=document.getElementById(\"d13931\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d13931' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you into being on the go and using email as a way to keep valuable data safe (&#8220;in the ether&#8221;), or used as a backup, until you get to your destination? Today, after yesterday&#8217;s Dropbox API Chooser Primer Tutorial, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/dropbox-api-saver-and-chooser-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,25,37],"tags":[69,88,212,281,316,349,360,366,425,426,576,590,652,838,913,932,1090,1122,1133,1319,1343],"class_list":["post-13931","post","type-post","status-publish","format-standard","hentry","category-elearning","category-networking","category-tutorials","tag-ajax","tag-api","tag-client","tag-css","tag-depository","tag-document","tag-download","tag-dropbox","tag-file-size","tag-file-storage","tag-html","tag-image","tag-javascript","tag-networking-programming","tag-pdf","tag-php","tag-saver","tag-server","tag-share","tag-tutorial","tag-upload"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13931"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=13931"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13931\/revisions"}],"predecessor-version":[{"id":48613,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13931\/revisions\/48613"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=13931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=13931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=13931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}