How to Change the Outputfilename for Curl
Posted: Sat Oct 26, 2019 12:52 pm
Hi,
Currently i'm Running this Code to Get my Gcode up to Octoprint:
curl -k -H "X-Api-Key: xxxxx" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://xxx.xxx.xxx.xx/api/files/local"
Now i want to add a Prefix behind the Filename (Automatically). For Example: BracketPLA or HinchPETG (Depends on the Simplify3D Profile)
What do i Need to add to this script?
Google search doesn't give me any Answer….
Thanks,
Sebastian
Currently i'm Running this Code to Get my Gcode up to Octoprint:
curl -k -H "X-Api-Key: xxxxx" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://xxx.xxx.xxx.xx/api/files/local"
Now i want to add a Prefix behind the Filename (Automatically). For Example: BracketPLA or HinchPETG (Depends on the Simplify3D Profile)
What do i Need to add to this script?
Google search doesn't give me any Answer….
Thanks,
Sebastian