aiten/grails-ajax-uploader — Issue #12: Added the Ability to Change Button Text and to Display a Host Message
Author: hart404
Created: 2012-03-02 01:36:11+00:00
State: open

I wanted the ability to change the button text. I added an optional buttonText attribute to the uploader tag and changed the fileuploader.js to support this attribute. For example:

I also modified the fileuploader.js to display a message from the host which is returned with the JSON response:

} catch (FileUploadException e) {
log.error("Failed to upload file.", e)
return render(text: [success:false, message: e.message] as JSON, contentType:'text/json')
}

These changes seem useful. Can you tell me how I would go about getting these changes incorporated in the plugin, please?

Phil H