Issue #1443176 by Kars-T: fixed File storage fails if PHP can't write to the local /tmp folder. Made temp dir configurable