Add api/upload.php to allow images to be uploaded.
Fix some bugs according to error.log
Merge pull request #24 from ckcz123/master

Add api/upload.php to allow images to be uploaded.