Is it possible to upload a file from a client to an httpd server?

I can do:
<input type="file" id="file-selector accept=".xls, xlsx">

but how can I then save the file in a server's directory?

I found stg like:

const fileSelector = document.getElementById('file-selector');
fileSelector.addEventListener('change', (event) => {
const fileList =;


but doesn't work; any help?

I'll !

· · Web · 1 · 0 · 0

This is all frontend code. What's running on the backend?
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!