Brian Hernandez
Brian Hernandez

Reputation: 254

Can hosted GitHub Pages websites accept file uploads?

I would like to create a simple website that accepts a text file upload for a small project that parses the text. Is this possible to do with GitHub Pages? I haven't found anything that addresses this functionality so I am wondering if it is possible or not.

Upvotes: 1

Views: 89

Answers (1)

VonC
VonC

Reputation: 1327912

As seen in this issue, there is no server side configuration or execution with GitHub Pages, so no.

The only workaround is rafrex/spa-github-pages: Single Page Apps for GitHub Pages, a lightweight solution for deploying single page apps with GitHub Pages. You can easily deploy a React single page app with React Router <BrowserRouter />.
But that might not include what you are looking for.

Upvotes: 2

Related Questions