aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-22 20:22:03 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-22 20:22:03 -0700
commit88bfe21bead769c3ba81e181b79f9d6426ace351 (patch)
tree172c2d52cd001ddf6c2478e43d5eaa8bcacc93f8 /mod
parent11f2eaa16dc3e41b758235e7bc1a281e19aca96e (diff)
downloadvolse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.tar.gz
volse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.tar.bz2
volse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.zip
first cut at ajax photo upload
Diffstat (limited to 'mod')
-rw-r--r--mod/wall_upload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
new file mode 100644
index 000000000..769e5dcbc
--- /dev/null
+++ b/mod/wall_upload.php
@@ -0,0 +1,16 @@
+<?php
+
+
+function wall_upload_post(&$a) {
+
+
+ $src = $_FILES['userfile']['tmp_name'];
+
+
+unlink($src);
+
+
+ echo "<img src=\"".$a->get_baseurl(). "/images/default-profile.jpg\" alt=\"default\" />";
+ killme();
+
+} \ No newline at end of file