File uploading to directory works