File Uploader consists of two parts: the client part that works in a browser and the server part that should be placed on the server along with your website or application. The server part depends on the technology you use on your website.
If you use PHP, chances are you don't need to do anything. The PHP uploader is included to File Uploader package by default and its URL is detected automatically as well as URL of uploaded files.
Nevertheless, if something was detected incorrectly, you can easily fix that. To make the client correctly recognize uploader path, you can specify it manually using the urlUploader parameter. For correct generation of embedding links to uploaded files, use the urlFiles option.
Server settings can be found and modified in the
PHP version requires some additional standard packages to be installed on your server, they are: GD (to process images) and CURL (to download files from internet by URL). If you have not installed them yet, check your hosting control panel to do it or use Linux console. This is example of Linux command for Ubuntu and any other Debian based Linux:
sudo apt-get install php5-gd php5-curl
Then restart your HTTP server (Apache, Nginx, etc) to apply the changes.
File Uploader adheres to standard technologies in Java stack and is shipped as a servlet. Correspondingly, your steps to install File Uploader to the server come to deploying the war-files on your application server, for example, Tomcat.
After deploying the server, assign the URL it will be available at, and configure its parameters.
The list of servlet settings is the same as in the PHP-version.
The servlet configuration is also pretty much standard for J2EE. Here is an example of such configuration:
<servlet> <description></description> <display-name>UploaderServlet</display-name> <servlet-name>UploaderServlet</servlet-name> <servlet-class>plus.js.uploader.servlet.UploaderServlet</servlet-class> <init-param> <param-name>crossDomainUrl</param-name> <param-value>*</param-value> </init-param> <init-param> <param-name>dirFiles</param-name> <param-value>/home/storage/files</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>UploaderServlet</servlet-name> <url-pattern>/uploader</url-pattern> </servlet-mapping>