My second solution also creates the buttons and opens the file explore, but when a file is selected and the upload button is clicked the user receive HTTP 404.0 error. :
<form action = "upload.php" method = "POST" enctype = " multipart/form-data">
<input type = "file" name = "file">
<button type = "submit" name = "submit">UPLOAD</
>
</form>
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I have a Mat Lab based Satellite simulation that outputs a .czml file that we want to upload into cesium for better visualization results.
4. The Cesium version you're using, your operating system and browser.
Cesium version:1.50 Operating system: windows(visual studio) Browser: Google chrome
Should I be using the cesium.CzmlDataSource.load(czml,options) command. if so where should I be using it and I'm assuming the czml parameter would just be the file I'm passing through, what would be the options parameter.
If you’re loading a local CZML file, then you can load the contents using the normal browser API, then parse the JSON and load the data into Cesium directly. No need to send to a server.
You can see similar code in Cesium which loads from a file using FileReader in the drag-and-drop handling code:
I was actually reviewing this code today I guess my confusion comes into place on how i manipulate this code to work with my first solution stated above