File parsing

This commit is contained in:
2023-04-25 16:47:02 +10:00
parent 72f5e1e022
commit adc62099aa

View File

@@ -6,7 +6,7 @@ module Adamantium
def handle(req, res)
tempfile = Tempfile.new(%w/path .gpx/)
tempfile.write req.params["file"]["tempfile"]
tempfile.write req.params[:file][:tempfile]
tempfile.rewind
gpxfile = gpx_parser.call(file: tempfile)