This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Let me start by saying that I'm not a real developer.
I have expanded the file uploader plugin/component so that after uploading a UBL invoice (xml) file, the content of the invoice appears on screen.
Supplier, customer, invoice and payment data can be viewed in there proper panels.
If there is a built-in (embedded) invoice pdf, the file is also visible on screen.
Clicking on the uploaded (Invoice?) PDF file shows this file in a modal window.
I've made these adaptions completely in the jquery "uploader.js" file, at the end of the "onUploadSuccess" function.
At first, I do a GET (AJAX) request to obtain the contents of the xml file.
Then I collect all the xml data through jquery functions and show them on screen in their specific panel.
Questions:
- After uploading a file, I see that the content is already present as posted (Raw) data.
How to "collect/get" this RAW (string/xml) data into variables and where (php/jquery) do I do this?
In which specific (if php) function do I start writing the code? - What is the best approach to achieve this?
If possible please provide me with some code examples. - How can I use the responsiv file uploader plugin (without changing the files itself) and attaching my code in php/jquery to it?
1-1 of 1