Fix GeoJSON upload function