File upload function and page layout.