Is there a way to upload a file with ajax so that it stays in the same page and doesn’t reload it?
Oh, you wanted to know how? There’s lots of packages out there that do this for you. Look at uppy for example.
Thank you @Zuluru, what I need is to upload files to a folder in my web server, is this package able to do that?