From 6f9dcbf38ece38b3610c9ba956f5678975b4d70c Mon Sep 17 00:00:00 2001 From: Frikky Date: Mon, 10 Feb 2025 12:15:15 +0100 Subject: [PATCH] Minor fallback for app zip upload onprem to use hotloading --- backend/go-app/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 042a30aa..a4ac387f 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -4954,6 +4954,10 @@ func handleAppZipUpload(resp http.ResponseWriter, request *http.Request) { return } + resp.WriteHeader(500) + resp.Write([]byte(`{"success": false, "reason": "The upload API is not yet implemented in self-hosted Shuffle. Please explore the app hotloading system: https://shuffler.io/docs/app_creation#uploading-an-app"}`)) + return + //https://stackoverflow.com/questions/22964950/http-request-formfile-handle-zip-files request.ParseMultipartForm(32 << 20) f, _, err := request.FormFile("shuffle_file")