X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ece8999dcdfa84f146aa7ad39071b48260b0d7fe..92418b7954d8915734f07a66abf76f52b437a517:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 337f27e0e..c8b330601 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -15,8 +15,6 @@ class TraceController < ApplicationController File.open(filename, "w") { |f| f.write(@params['trace']['gpx_file'].read) } @params['trace']['name'] = @params['trace']['gpx_file'].original_filename.gsub(/[^a-zA-Z0-9.]/, '_') # This makes sure filenames are sane - #@params['trace']['data'] = @params['trace']['gpx_file'].read -# @params['trace']['mime_type'] = @params['trace']['gpx_file'].content_type.chomp @params['trace'].delete('gpx_file') # let's remove the field from the hash, because there's no such field in the DB anyway. @trace = Trace.new(@params['trace']) @trace.inserted = false