oasis-open / cti-stix-visualization

OASIS TC Open Repository: Lightweight visualization for STIX 2.0 objects and relationships
http://oasis-open.github.io/cti-stix-visualization
BSD 3-Clause "New" or "Revised" License
138 stars 43 forks source link

Filename artifact when uploading invalid JSON #11

Closed gtback closed 6 years ago

gtback commented 7 years ago

If you try to load a file that is invalid JSON (or not JSON at all), the name of that file gets "stuck" in the filename field, and uploading a second, valid JSON file results in the two names being concatenated. (If you upload a second invalid file, it gets "stuck" too).

Confirmed on both Firefox 51.0.1 (64-bit) and Chrome 56.0.2924.87 (64-bit) on macOS.