#272: AJAX: JSON encode file upload from PHP to Python

Resolves #272.