I'm using openlayers 2.12 and I'm wondering how could upload shp, kml, csv, gml into the browser, just as a temporary layer wich user could see it.
Is there any library or way to do it?
You could use the FileAPI: http://www.w3.org/TR/FileAPI/
Here is one example: http://renevier.net/misc/mapfileapi.html
If you need a kml file to test: http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/kml/sundials.kml
And here the browsers that support the fileapi: http://caniuse.com/#feat=fileapi
The same as jsfiddle for own tests: