Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Reimplement Body Param File input filtering for saving requests
Andrew Bastinb52cc9e2b485
diff --git a/components/collections/SaveRequest.vue b/components/collections/SaveRequest.vueindex 1b06cca67..90daea20b 100644--- a/components/collections/SaveRequest.vue+++ b/components/collections/SaveRequest.vue@@ -175,6 +175,13 @@ export default {name: this.$data.requestData.name,}+ // Filter out all REST file inputs+ if (this.mode === "rest" && requestUpdated.bodyParams) {+ requestUpdated.bodyParams = requestUpdated.bodyParams.map((param) =>+ param?.value?.[0] instanceof File ? { ...param, value: "" } : param+ )+ }+if (this.picked.pickedType === "my-request") {editRESTRequest(this.picked.folderPath,