Fixed issue with file uploads. (Thanks, rwilki)