I want to upload file with C# client app and Nusoap webservice. How i can do this? I use Nusoap webservice for insert in database but for upload files i don’t have any idea. Please help me.
Thanks.
I want to upload file with C# client app and Nusoap webservice. How i
Share
As I haven’t any experience with NuSOAP, I shall answer with the best of my knowledge of uploading a file to a server running PHP, without using NuSOAP.
The following code will
POSTthe contents of a given file to a PHP page, as if it was sent via a standard HTML form.Edit: Here is the PHP that I used for this a while ago. It is potentially insecure and will always overwrite the same file every time a new one is being uploaded. You could try to work some dynamic-ness into this, along with some file checks for security sake… but you should also be able to use a modified PHP file intended for standard uploads (from a web form).