grails-ajax-uploader icon indicating copy to clipboard operation
grails-ajax-uploader copied to clipboard

Added the Ability to Change Button Text and to Display a Host Message

Open hart404 opened this issue 13 years ago • 0 comments

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:

<uploader:uploader id="mscUploader" url="${[controller:'photo', action:'upload']}" buttonText="Upload Photos"/>

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

hart404 avatar Mar 01 '12 22:03 hart404