File upload problems fixed