no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | progressbar [2010-03-29 14:34] – marcos | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Progress Bar (Plugin) ====== | ||
+ | |||
+ | ===== What this plugin does ===== | ||
+ | |||
+ | This plugin displays a progress bar when you are uploading a file through OpenGoo. It requires Perl installed on the server. Uploads are performed through a Perl script that saves the uploaded file to the tmp folder in OpenGoo, along with info about the total size of the file. The GUI periodically calls a PHP script that calculates the progress based on the size of the temporary file and the total size of the file. | ||
+ | The progress bar is updated with this info, showing how much of the file has been uploaded. | ||
+ | |||
+ | ===== How to install this plugin ===== | ||
+ | |||
+ | 1- Make sure you have installed Perl with CGI, FILE::COPY, FILE::PATH, IO::File | ||
+ | 2- Unzip the plugin into your OpenGoo installation | ||
+ | 3- Edit file ' | ||
+ | - OG_ROOT: | ||
+ | e.g.: / | ||
+ | - OG_URL: | ||
+ | e.g.: http:// | ||
+ | - MAX_SIZE: Maximum allowed upload size in bytes. | ||
+ | e.g.: 10000000 | ||
+ | 4- Copy file ' | ||
+ | - e.g. on linux: | ||
+ | cp cgi-bin/ | ||
+ | chmod +x / | ||
+ | 5- Define a constant PROGRESS_UPLOAD_SCRIPT on ' | ||
+ | - e.g.: define(' | ||
+ | 6- Define a constant UPLOAD_HOOK on ' | ||
+ | - i.e.: define(' | ||
+ | 7- Check the installation: | ||
+ | a- Browse to <URL to your upload.pl>? | ||
+ | You should get " | ||
+ | b- Browse to <URL to your OpenGoo>/ | ||
+ | You should get a file upload form where you can test your script. | ||
+ | c- Try uploading a file on your OpenGoo ;) | ||
+ | ===== How to use this plugin ===== | ||
+ | |||
+ | While uploading a file you will notice a progress showing what percentage of the file has been uploaded. | ||