fix file uploads