[BUGFIX] Handle open basedir properly during file upload
This solves the issues of uploading files when using open_basedir
restriction. Instead of having to add the temporary upload
directory (upload_tmp_dir) in the open_basedir configuration,
which is a bad idea, this ensures that it works even though the
open basedir restricts access to the temporary upload directory.
Make sure that the temporary upload directory is writable to test
Releases: master, 2.0