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 File Uploading stores file data to a MySQL database, so create a MySQL database and configure the connection in
- Run the MySQL Setup Script located in
- You'll notice a
/install/configdirectory. This is your EXTERNAL CONFIGURATION directory which must be located under your
/home/usernamedirectory. Copy the config folder's contents to a subdirectory in your home directory, then enter that subdirectory path in the
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.
BE SURE TO MAKE THE SAME UPDATES TO /test/resources/test.properties FOR TESTS
- Update the external
global.propertiesfile. If, as in our example, your username was billy and you copied the
/home/billy/fileuploaderthe properties in your external
global.propertiesfile 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