Reputation:
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
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