Updated upload() and fetchFiles function to allow for different directories