Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 43 lines (29 sloc) 2.727 kb
3b04f84 first commit
Cindy Li authored
1 How to install:
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
2 1. First of all, make sure you have PHP, Apache (or other web servers) and git installed.
85acd1f first commit of the new uploader image gallery demo
Cindy Li authored
3
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
4 2. Place a copy of Infusion in a Web-visible location.
5
6 3. Place a copy of the Image Gallery on your web server:
10955b6 Modified README
Cindy Li authored
7 cd [webserver_document_root] -- or any folder underneath your web server document root
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
8 git clone git://github.com/fluid-project/image-gallery.git
10955b6 Modified README
Cindy Li authored
9 cd image-gallery
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
10
11 4. In image-gallery-settings.ini, specify the path to your copy of Infusion (if it's different from the default)
391151e This commit handles single file uploader, also includes a new installati...
Cindy Li authored
12
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
13 5. Run the install script
14 dos2unix install.sh -- (Windows only) convert the installation script in DOS/MAC format to UNIX format
c02d902 Added the installation step that converts install.sh from DOS/MAC format...
Cindy Li authored
15 ./install.sh -- install.sh asks for the path to your local infusion library
8b5c18c Added more allowed file types and code clean-up.
U-ONLY4TES-F74E9A\Administrator authored
16
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
17 6. That's all. The Image Gallery is running at: http://localhost/image-gallery/image-gallery.php
3b04f84 first commit
Cindy Li authored
18
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
19 How it looks:
20 This Image Gallery Uploader demo is composed of 3 parts:
21 1. the Uploader at top left
22 2. the image viewer at right.
23 3. the settings panel at bottom left.
24
25 This Uploader is configured to be progressively enhnaced. If Flash is not installed, or JavaScript is disabled, you'll
26 get the single file Uploader. On IE, you'll get the Flash-based multi file Uploader. On modern browsers, you'll
27 get an HTML5 version.
3b04f84 first commit
Cindy Li authored
28
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
29 How it works:
30 1. When the Upload button is clicked, the client page sends an upload request to the server, along with a session token. This session token is a unique 13-character string that is generated by the front-end JavaScript. It helps the php server to distinguish the upload requests from different clients.
3b04f84 first commit
Cindy Li authored
31
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
32 2. Once the PHP server receives the uploaded image, it looks up in the "temp" directory for a sub-directory
33 named after the specified session token. If the sub-directory does not exist, it is created. The uploaded images are placed into the sub-directory, then the server sends back the URL of the uploaded image. The client retrieves the url and adds it to the image viewer.
3b04f84 first commit
Cindy Li authored
34
10955b6 Modified README
Cindy Li authored
35 3. If anything goes wrong at PHP server, for instance, no file is received, session token is not provided, invalid file extension, or temp/ folder does not exist, the server returns a error message with http status code 400. The client displays the error on the page along with the name of the corresponding file.
3b04f84 first commit
Cindy Li authored
36
607feeb More into README
Cindy Li authored
37 A few constraints performed at PHP server:
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
38 1. The temporary folder is removed for sessions that are inactive for over an hour. This is performed in uploader-server.php as the first thing whenever it's called.
3b04f84 first commit
Cindy Li authored
39
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
40 2. For security reason, the server only allows the upload of these file types by default, regardless of the settings on the client side: jpg, jpeg, gif, png, tif, tiff
3b04f84 first commit
Cindy Li authored
41
0d4598d @colinbdclark FLUID-4238: Refactored PHP Image Gallery to read the infusion path from ...
colinbdclark authored
42 3. Duplicate versions of the same file are rejected.
Something went wrong with that request. Please try again.