Integrate FineUploader with IDrive® e2
FineUploader is a JavaScript library that simplifies file uploading in web applications, offering support for multiple files, drag-and-drop functionality, progress indicators, and advanced options such as chunked and resumable uploads. It also enables direct-to-cloud transfers to platforms such as Amazon S3 and Azure, while offering customizable validation and interface options to improve usability and control. Integrating FineUploader with IDrive® e2 extends these capabilities with a capable and scalable cloud object storage solution that facilitates systematic integration for secure, efficient, and flexible file handling.
Prerequisites
Before you begin, ensure the following:
- An active IDrive® e2 account. Sign up here if you do not have one.
- A bucket in IDrive® e2. See how to create a bucket.
- Valid Access Key ID and Secret Access Key. Learn how to create an access key.
- A valid FineUploader account.
Configure FineUploader with IDrive® e2
To use FineUploader with IDrive® e2 Cloud, follow the steps below to configure it.
- To run this you will need PHP which is already installed on OSX by default.
- To install Node.js, you will require npm - Run brew install npm.
- Install Composer by following this link: https://getcomposer.org/download/.
- Start building the application to set up IDrive® e2 storage.
- To install the JavaScript version of FineUploader, perform the following steps:
- mkdir fineuploader-example
- cd fineuploader-example
- echo "{}" > package.json
- npm install fine-uploader
- To install the PHP backend of FineUploader, perform the following steps.
- Edit the composer.json file - vim composer.json
- Add the following JSON - { "require": {"fineuploader/php-s3-server": "1.1.0"}}
- Now to install the FineUploader php backend, run - ./composer.phar install
- The next Step is to get the UI running on your Browser. Edit the section in index.php to look like this:

- Now create a Start script to start a PHP server run.
- Edit the file - vim startServer.sh
- Add the following lines:
- #!/bin/bash
- export AWS_SERVER_PUBLIC_KEY=YOUR_PUBLIC_ACCESS_KEY
- export AWS_SERVER_PRIVATE_KEY=YOUR_SECRET_KEY
- export AWS_CLIENT_SECRET_KEY=$AWS_SERVER_PRIVATE_KEY
- export S3_BUCKET_NAME=YOUR_BUCKET_NAME
- #php -S 0.0.0.0:8080
- Now, to make sure the file is executable, run - chmod +x startupServer.sh
- Now to run the PHP server, run - ./startupServer.sh
- Now use your favorite browser to go to http://127.0.0.1:8080 or http://0.0.0.0:8080
- You should see the following image shown below:
