Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
{"id":275,"date":"2014-02-01T18:21:42","date_gmt":"2014-02-01T12:21:42","guid":{"rendered":"http:\/\/ujjalruet.wordpress.com\/?p=275"},"modified":"2014-02-01T18:21:42","modified_gmt":"2014-02-01T12:21:42","slug":"uploadrop-a-dropbox-based-file-uploading-solution-of-large-files","status":"publish","type":"post","link":"https:\/\/blog.ujjal.net\/?p=275","title":{"rendered":"UploaDrop [A Dropbox based File Uploading Solution of large files]"},"content":{"rendered":"What is it?<\/strong>
\nUploaDrop is a dropbox based upload script which is used for uploading files and folders to dropbox instead of server storage.<\/p>\nMotivation<\/strong>
\nMost of the time, we, the developers, must have to manipulate large files on the website like videos, audios or other documents. If the unit size of files is small, then its okey. There is no big deal to handle these files of small size. But when the application requires to upload files of large size like 5GB on each upload, we need to consider the reliablity of the upload script. We need to consider the maximum size of files which can be uploaded. We need to consider the maximum bandwidth we can use at a time. We have to take the burden of server optimization.<\/p>\nTo get rid of these headache, we can handle this file manipulation tasks to other 3rd party who is already established with the service of file manipulation.<\/p>\n
Dropbox is cloud based file hosting server in which users can upload their files and can download when needed. Dropbox has provided lots of features including large file uploading with optimized way.<\/p>\n
Dropbox has also provided an api which is highly user-friendly so that any developer can use that.<\/p>\n
Objective<\/strong>
\nTo develop a script in which visitors\/users of the application can upload file via drag drop or choosing. Instead of the hosting space, these files will be uploaded on dropbox space of the owner of the application. Then these files can be used for different purposes.<\/p>\nFeatures<\/strong>
\n1. Multiple files uploading at a time
\n2. File uploading to owner’s dropbox storage
\n3. No need to have headache about file manipulation, storage, bandwidth of file uploading.
\n4. Recrsively finds every files from all folders and uploads to dropbox<\/p>\nAcknowledgements<\/strong>
\nFirst of all I would like to thank the Dropbox Team for providing this awesome service.<\/p>\nThen I thank Mr. Nuhil Mehdy (nuhil.net) to give me the idea. <\/p>\n
Lets start the development of an simple application called UploaDrop by which end user will upload something to your website, and instead of your host, it will be uploaded on dropbox.<\/p>\n
When you are a Developer<\/strong>
\nThe first task is to create an app on your Dropbox account using developer account.<\/p>\n1. Go to https:\/\/www.dropbox.com\/developers\/apps and Click on “Create app” button.
\n <\/p>\n
2. Fill these given fields as the picture shows.
\n <\/p>\n
3. After completing the creation of your app you will see the details of your app by going https:\/\/www.dropbox.com\/developers\/apps and click on the App Name ‘UploaDrop’.
\n <\/p>\n
See the rounded area which provides app key and app secret. These two key defines the access of your dropbox account for uploading from outside.<\/p>\n
4. Now open composer.json for editing and set these keys on this like the picture shows.
\n <\/p>\n
5. OK, In this step you are all set. Now lets get the access key. Execute getAccesskey.php on the browser which returns a url like
\nhttps:\/\/www.dropbox.com\/1\/oauth2\/authorize?locale=&client_id=12ab34vd&response_type=code<\/p>\n
6. Copy this url and paste on the browser. It will ask for permission to create a folder named app name on the dropbox account.
\n
\nClick on “Allow”<\/p>\n
7. An access key will be displayed like the given screenshot.
\n
\nSave the Access key on some secured place.<\/p>\n
8. Open index.php and and edit the $accesskey field on line 10.
\n <\/p>\n
Open processupload.php and do the same task on line 5. <\/p>\n
Here, developer’s work is finished. All configuration is finished.<\/p>\n
Front End behavior<\/strong>
\n1. Hit “index.php” on the browser, the front end page will be arrived.
\n
\n2. In the drag&drop area, user can drag&drop their files and folders. A progress bar will be shown for each of the files when uploading. After completation of uploading of all files click on “Finish Uploading”. <\/p>\nThis is the simple app. Actually, It is a brief instruction of how to use Dropbox Core Api. <\/p>\n
Future Works<\/strong>
\n1. In the top area, all existing files are being displayed in recursive structure which is coded by me. In dropbox core api, there are options to create download link of each files, Editing, Deleting etc. These 3 features can be achieved in future. <\/p>\n2. If any compressed file is drop on the drag&drop area, it doesnt extract the compressed file. In future, it can be an issue.<\/p>\n
Source Code (Github)<\/a>
\nWatch Demo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"What is it? UploaDrop is a dropbox based upload script which is used for uploading files and folders to dropbox instead of server storage. Motivation Most of the time, we, the developers, must have to manipulate large files on the website like videos, audios or other documents. If the unit size of files is small, … <\/p>\n
Continue reading “UploaDrop [A Dropbox based File Uploading Solution of large files]”<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[18],"tags":[60,61,67,88,101,131],"_links":{"self":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/275"}],"collection":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":0,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}