From 64bb852addccf238889a418db61bc1a200b29535 Mon Sep 17 00:00:00 2001 From: Bruce Wang Date: Wed, 6 Nov 2019 21:08:46 +0800 Subject: [PATCH] curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" clarification --- Filer-Server-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index 1393e1f..dd689ea 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -23,7 +23,7 @@ Examples: {"name":"report.js","size":866,"fid":"7,0254f1f3fd","url":"http://localhost:8081/7,0254f1f3fd"} > curl "http://localhost:8888/javascript/report.js" # get the file content ... -> curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" # upload the file with a different name +> curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" # upload the file with a different name (The local report.js becomes new_name.js on the server side.) {"name":"report.js","size":866,"fid":"3,034389657e","url":"http://localhost:8081/3,034389657e"} > curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y" # list all files under /javascript/ {