OS X file upload fix