Another Input:file object question
Posted: Tue Mar 13, 2018 11:44 am
I think I get the whole concept nuBuilder uses for an Input:file object. It looks like when there is a change to an Input:file object the event fires the nuChangeFile() function in nuform.js, which in turn JSON-ifies the file data and saves it in a hidden textarea. If my understanding is correct, then would this be the place that I would want to add some code to save the file to the server? And to do that, would I be correct in assuming that I would need to ajax the file to some PHP code that would in turn save the file to the server?
What I want to do is bypass the saving of the JSON data and just save the file to the server, and just save the path to the saved file. What I don't yet understand is where in the nuBuilder code does the Input:file object get placed on the form? That is the spot that I would have to make additional changes in order to read the file back in. My goal would be much better if I could figure a way to do what I want without changing any nuBuilder code. Any ideas?
TIA
What I want to do is bypass the saving of the JSON data and just save the file to the server, and just save the path to the saved file. What I don't yet understand is where in the nuBuilder code does the Input:file object get placed on the form? That is the spot that I would have to make additional changes in order to read the file back in. My goal would be much better if I could figure a way to do what I want without changing any nuBuilder code. Any ideas?
TIA