Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Spring Boot server for the Fine Uploader JavaScript library

License

Notifications You must be signed in to change notification settings

FineUploader/spring-boot-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Server-Side Example for the Widen Fine Uploader Javascript Library

This repository contains a Spring Boot server-side example for users of Widen's Fine Uploader javascript library.

This server supports

Requirements

Java Platform (JDK) 8 (it might work as is with JDK 7, some changes would be needed to make it run with JDK 6)

Getting Started

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

Server configuration

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

Server endpoints

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

Fine Uploader library

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.

License

This project is licensed under the terms of the MIT license.

About

Spring Boot server for the Fine Uploader JavaScript library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published