user2621797
user2621797

Reputation:

How to send data from a browser to a server?

I want to send a file to the server, can I do that using only PHP? Or should I use javascript?

And is there a library to help me? I don't want (and also don't know how) to convert files into char* and send using sockets.

Upvotes: 0

Views: 264

Answers (1)

tetta
tetta

Reputation: 445

Sorry, inattentively read. If <input type="file" /> does not fit, try to use html5 FileReader object. https://developer.mozilla.org/en-US/docs/Web/API/FileReader

Upvotes: 1

Related Questions