Hi All,
The question is simple: How do I do file upload via web service? There’s nothing in the documentation, and searching in google gives no result also.
Here’s the case:
I have an application that needs to save some form with file. We can upload the file in two ways: from the web app itself, and from a web service. The upload module in the web app has finished, and now I have a UploadForm that extends from the basic model. The UploadForm Class saves the file from CUploaded file, and if possible, I want to use the same form from the web service.
Unfortunately, most reference that I found via google suggest that we use base64_encode to transfer the file to the web service. Is there any way to send the file via POST just like Http Form so I can just simply use the UploadForm class?
Thanks before.