Is it possible to upload files without using php, just with jquery?

Asked

Viewed 903 times

5

I’ve searched a lot of sites but I’ve never been able to figure out if it’s even possible, someone can help me?

2 answers

9


The answer is yes and no.

Yes, it is possible to make one upload system without PHP.

And no, it’s not possible to just do with jQuery.

What happens is that jQuery is a Javascript that works on the client-side (front-end). However, it has no effect on you uploading the front end, if you have nothing in the back end (server-side) to receive/treat that file.

However, you can only use Javascript to handle the upload, using the Nodejs. If you want, you can also use other technologies such as Python and their thousands of web frameworks, Ruby with the Ruby on Rails or any other language that works in the back-end.

4

No. An application on the server side has to receive the file and do something with the file - for example, save it to the file system.

Now, if you want an application javascript only, it is possible to do it using jQuery for the client side and a javascript technology for the server side, for example Node.js.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.