Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
grails-app
src
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
upload.png
uploadbefore.png

README.md

HTML5 and CSS3 based File Uploader

About

Grails 3 is based on Spring-Boot and plugins written pre-Grails 3 have to be "re-structured" or re-configured for Grails 3.

This is an upgrade to grails 3.x of the excellent plugin written by Dustin Clark here

Usage

In the project that you would like to use the uploadr plugin, include the following in its build.gradle.

buildscript {
...
    dependencies {
        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0'
        ...
    }
}

and

dependencies {
 ...
    compile "com.nayidisha.grails.uploadr:grails3-uploadr:3.0"
...
}

Then in a gsp where the uploadr needs to be installed:

<!DOCTYPE HTML>
<html>
<head>
    ...
    <asset:javascript src="uploadr.manifest.js"/>
    <asset:javascript src="uploadr.demo.manifest.js"/>
    <asset:stylesheet href="uploadr.manifest.css"/>
    <asset:stylesheet href="uploadr.demo.manifest.css"/>
    ...
</head>
<body>
    ...
    <uploadr:demo/>
    ...
</body>
</html>

Images

When your gsp is configured with a tag like so:

<uploadr:add name="aFileToUpload.png" path="/somewhereOnYourFS" maxSize="52428800" />

Here is how a single file upload looks:

uploadImage

and after upload...

uploadImage

ToDo

  • i18n is still not working correctly, so all messages have been hardcoded in English.