Polyfill for file uploads