Programming Assignment 5
Using Cloud Storage

Due on Tuesday April 4 before midnight


Description

The goal of this project is to develop a photo-album application that uses cloud storage. More specifically, you will use the Dropbox API to create a photo album, in which you can upload, delete, and browse photographs.

This project must be done individually. No copying is permitted. Note: We will use a system for detecting software plagiarism, called Moss, which is an automatic system for determining the similarity of programs. That is, your program will be compared with the programs of the other students in class as well as with the programs submitted in previous years. This program will find similarities even if you rename variables, move code, change code structure, etc.

Note that, if you use a Search Engine to find similar programs on the web, we will find these programs too. So don't do it because you will get caught and you will get an F in the course (this is cheating). Don't look for code to use for your project on the web or from other students (current or past). Just do your project alone using the help given in this project description and from your instructor and GTA only.

Platform

You will develop this project on your PC/laptop using XAMPP and you will test it using using your Mozilla Firefox web browser. Download project5.zip and unarchive the files inside your web server document root directory.

Documentation

This project must be done in PHP. Please look at Project 3 for links to PHP tutorials. Your scripts must use the Dropbox API to upload, delete, and retrieve photographs, and the PHP library DropPHP. You will first need to create a Dropbox account and a Dropbox API app with both Files and datastores, which will have the App name: cse5335_xyz1234, where xyz1234 is your NetID. Then, edit the file project5/sample.php and set the app_key and app_secret to your Dropbox API key and secret. You can test your setup on your web browser by using the URL address http://localhost/project5/sample.php
Look at the code in sample.php; your album.php must have a similar authentication.

Project Requirements

You will develop a trivial photo-album application on Dropbox. Your task is to modify your album.php script in your project5 directory to support the following operations:

Note that the images that you display/delete are those stored in your cse5335_xyz1234 dropbox directory. You should not display any local images.

What to Submit

Use the form below to submit your zipped project5 directory. You may submit your file as many times as you like, but only the most recently submitted file will be retained and evaluated.

Submit Project #5:

Last modified: 03/23/2017 by Leonidas Fegaras