Blueimp jQuery FileUpload Plugin Integration with Jersey
Switch branches/tags
Nothing to show
Clone or download
Dave Burke
Dave Burke v1.1.0
Latest commit a009d9c Apr 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
install v1.1.0 Apr 14, 2018
src v1.1.0 Apr 14, 2018
.gitignore initial commit Apr 3, 2018
CHANGELOG.md v1.1.0 Apr 14, 2018
README.md v1.1.0 Apr 14, 2018
VERSION v1.1.0 Apr 14, 2018
config initial commit Apr 3, 2018
pom.xml v1.1.0 Apr 14, 2018

README.md

NixMash File Upload - Downloads with Bootique Jersey

This NixMash app demonstrates File Uploading and Downloading with Jersey, specifically with the Bootique Jersey Module.

   
Single File Uploads Multiple File Uploads
Multiple File Uploads with the BlueImp jQuery File Upload Plugin File Downloads with .TXT, .JPG, ODT, TAR.GZ, and PDF files
Secure File Downloads w/ Multiple Roles Email Contact Form with Javax Mail

BlueImp jQuery File Upload Plugin Integration with Jersey

BlueImp Jersey Integration

Installation

  1. BlueImp File Uploading stores file data to a MySQL database, so create a MySQL database and configure the connection in /resources/bootique.yml.
  2. Run the MySQL Setup Script located in /install/sql/setup.sql.
  3. You'll notice a /install/config directory. This is your EXTERNAL CONFIGURATION directory which must be located under your /home/username directory. Copy the config folder's contents to a subdirectory in your home directory, then enter that subdirectory path in the/resources/fileuploader.properties file.

Here's a sample configuration: If your username was billy and you copied the /config folder to /home/billy/fileuploader then the properties in fileuploader.properties would read as follows. Notice the paths indicate the subdirectory path from your user home directory.

global.properties.file=/fileuploader/global.properties
config.path=/fileuploader

BE SURE TO MAKE THE SAME UPDATES TO /test/resources/test.properties FOR TESTS

  1. Update the external global.properties file. If, as in our example, your username was billy and you copied the /config folder to /home/billy/fileuploader the properties in your external global.properties file would read as shown below, since we are entering the full filepath here.
file.upload.path=/home/billy/fileuploader/files/
thumbnail.upload.path=/home/billy/fileuploader/thumbnails/
downloads.path=/home/billy/fileuploader/downloads/

LAST UPDATED: 4/10/18