first cut at ajax photo upload

This commit is contained in:
Mike Macgirvin
2010-07-22 20:22:03 -07:00
parent 11f2eaa16d
commit 88bfe21bea
9 changed files with 744 additions and 62 deletions
+16
View File
@@ -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();
}