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/inc/userdata.h src/hg/inc/userdata.h
new file mode 100644
index 0000000..27bae83
--- /dev/null
+++ src/hg/inc/userdata.h
@@ -0,0 +1,18 @@
+/* userdata.c - code for managing data stored on a per user basis */
+
+/* Copyright (C) 2014 The Regents of the University of California 
+ * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
+
+#ifndef USERDATA_H
+#define USERDATA_H
+
+char *storeUserFile(char *userName, char *fileName, void *data, size_t dataSize);
+/* Give a fileName and a data stream, write the data to:
+ * userdata/userStore/hashedUserName/userName/fileName
+ * where hashedUserName is based on the md5sum of the userName
+ * to prevent proliferation of too many directories. 
+ *
+ * After sucessfully saving the file, return a web accessible url
+ * to the file. */
+
+#endif /* USERDATA_H */