Skip to content

mintster/nixmash-bootique-blueimp-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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