I am new to grails framework and I am stuck with the following problem:
- I want to upload project with file and some details like title,description and I have very big stl 3d file. While file upload takes time i want user to go on next page and fill the project rest details like , title description etc.
I am not able to figure out that how i will do this ..I had look in grails aynch programming but i could not figure out how to implement that.
I will really appreciate if someone guides on this
I worked on a form a while back that includes file uploads, which I wanted to be done asynchronously. It took lots of Googling, and unfortunately I do not remember any of the references I used, but here is what I ended up doing.
I included an onchange attribute on the file input that, when a file was selected, would call a javascript function to validate and upload the file asynchronously.
The file input:
The JavaScript (I did my best to strip out code that is not relevant to your question while still leaving enough to help solve your problem):