c79deb301511fcf0de0ed376c7746e4902804472 chmalee Fri May 5 16:59:33 2023 -0700 Experiment number one, can succesfully upload a file and store it via hgCustom. New userdata library for managing where to store the files Get skeleton structure of new cgi together More work in progress, mostly stubbing out the CGI More work in progress, mostly stubbing out the html page diff --git src/hg/cgilib/cartJson.c src/hg/cgilib/cartJson.c index 4e4229b..d0e3989 100644 --- src/hg/cgilib/cartJson.c +++ src/hg/cgilib/cartJson.c @@ -960,15 +960,24 @@ errCatchEnd(errCatch); if (errCatch->gotError) { jsonWritePopToLevel(cj->jw, 1); jsonWriteString(cj->jw, "error", errCatch->message->string); } errCatchReWarn(errCatch); errCatchFree(&errCatch); } cartJsonPrintWarnings(cj->jw); jsonWriteObjectEnd(cj->jw); puts(cj->jw->dy->string); cartJsonPopErrHandlers(); } + +char *cartJsonDumpJson(struct cartJson *cj) +/* Return the string that has been built up so far or an empty string */ +{ +if (cj != NULL && cj->jw != NULL && dyStringLen(cj->jw->dy) > 0) + return cj->jw->dy->string; +else + return ""; +}