I’m using URL that must content file name i.e {{host}}/filename.json. (method PUT). The goal is to attach a file in the body of the request and i want to set up the url so we can read the file name of the file attached and update this name in the url request. How can i automatically replace filename each time that attach newfile in body?
new file attached in the body. test1.json
request displayed in the console {{host}}/test1.json
If i attach a new file i.e. test2.json.
request displayed in the console {{host}}/test2.json
I don´t want to be changing manually the file name in the url each time that i want to upload a new file
Miguel Carrasco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.