File upload partially works