first cut at ajax photo upload
This commit is contained in:
parent
11f2eaa16d
commit
88bfe21bea
9 changed files with 744 additions and 62 deletions
16
mod/wall_upload.php
Normal file
16
mod/wall_upload.php
Normal 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();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue