Hello everyone,
I have a web page with a flex component, the flex component is responsible for creating an image from user inputs.
Once an image is ready the user enter some more information in the HTML form and click on the send form button.
When this button is clicked, javascript calls a function on the flex components which returns the image data as a base64 encoded string.
Then with Jquery i do an ajax POST to a django view. The image data is encoded as a string in the "data" option of the ajax POST.
Once the django view answers back i either redirect with a Javascript call or higlight any possible mistakes.
Is that the best way for what i want to achieve ? (sending form data + image to server at once)
- Some form have multi encode part when dealing with files should i try to use it ? with ajax ? how ?
Thanks,
Greg