Follow

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:

<script>
const fileSelector = document.getElementById('file-selector');
fileSelector.addEventListener('change', (event) => {
const fileList = event.target.files;
console.log(fileList);

});
</script>

but doesn't work; any help?

I'll !

· · Web · 1 · 0 · 0
@Eidon

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

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