This repository contains a Spring Boot server-side example for users of Widen's Fine Uploader javascript library.
Java Platform (JDK) 8 (it might work as is with JDK 7, some changes would be needed to make it run with JDK 6)
First step is to clone this repository. You can compile and run this as any other Spring Boot application, if you are not familiar with Spring Boot, a simple way is to run the below commands from the root directory (where the pom.xml is located),
Compile and package
./mvnw clean package
Run the server
java -jar target/spring-boot-server-1.0.0.jar
To configure the server, you can add the below properties in the application.properties file or set them when running the server from the command line,
Property | Default | Description |
---|---|---|
fineuploader.base-dir | ./uploads | Root upload directory |
server.port | 8080 | Listening port |
application.properties
fineuploader.base-dir=/tmp/uploads
server.port=9090
Command line configuration
java -Dserver.port=9090 -Dfineuploader.base-dir=/tmp/uploads -jar target/spring-boot-server-1.0.0.jar
Method | Endpoint | Usage |
---|---|---|
POST | /uploads | Upload file end point. Will create <root_upload_directory>/qquuid directory and store the received file inside. Refer to request.endpoint |
DELETE | /uploads | Deletes the uploaded file based on the qquuid parameter. Refer to deleteFile.endpoint |
POST | /chunksdone | Builds original file based on received chunks for the received qquuid parameter. Refer to chunking.success.endpoint |
Go to the Download section of the Fine Uploader website for instructions on how to get the library.
Go to the Demos section for Fine Uploader configuration examples.
This project is licensed under the terms of the MIT license.