upload buttons for user.public_key, network sdn parameters
diff --git a/planetstack/core/static/uploadTextarea.js b/planetstack/core/static/uploadTextarea.js
new file mode 100644
index 0000000..a7f76bf
--- /dev/null
+++ b/planetstack/core/static/uploadTextarea.js
@@ -0,0 +1,19 @@
+function uploadTextarea(event,textarea_id) {
+ var input = event.target;
+
+ var reader = new FileReader();
+ //reader.onloadstart = function() {
+ // reader.abort();
+ //};
+
+ reader.onloadend = function() {
+ if (reader.error) {
+ alert(reader.error.message);
+ } else {
+ $("#" + textarea_id).val(this.result);
+ //console.log(this.result);
+ }
+ };
+
+ reader.readAsText(input.files[0]);
+};