shuzo-kino.hateblo.jp ã§ã¯APIçš„ãªç”»åƒã‚¢ãƒƒãƒ—先をã¤ãã‚Šã¾ã—ãŸã€‚ $ curl -F "upload=@/PATH/TO/FILE.EXT" http://localhost:8080/imgãªæ„Ÿã˜ã§ãƒ–ンãªã’る奴ã§ã™ã。 実際ã®ã¨ã“ã‚ from bottle import route, request @route('/upload', method='POST') def do_upload(): name = request.forms.name data = request.files.data if name and data and data.file: raw = data.file.read() # This is dangerous for big files filename = data.filename with open(filename,'w
{{#tags}}- {{label}}
{{/tags}}