wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

Getting status 500 (internal server error) #74

Closed pnwk112 closed 6 years ago

pnwk112 commented 6 years ago

I'm trying to convert dgn file to GeoJSON using a POST request and i'm getting status 500 (internal server error). Here is my code:

var url = URL.createObjectURL(file);
$.ajax('http://ogre.adc4gis.com/convert', {
            type: 'POST',
            data: {
                     upload: url,
             sourceSrs: 'EPSG:3857'
             }
             }).done(function (response) {
            console.log(response);
             }).always(function () {

             });    
wavded commented 6 years ago

POST requests are multipart/form-data.