First, I would like to mention that I am developing an electronic tour of our school that will be deployed on many desktop computers. In each client, the admin can access all the administrative tools by logging in. So if the admin for example want to add an information about a building, that information will be uploaded to a web server(I am using apache, mysql, and php) using one of the deployed client and the info will be save to mysql via php. And also one of the requirement of the system is to be able to load a photo or video on local file system of one of the client and then upload it to the web server(installed on one of the computer in the LAN).
So far the system can upload text information. What I'm having trouble with, is the uploading of photos and videos. Any tips, links, or tutorials on how to achieve this will be greatly appreciated.
Btw, I already search on google on how to achieve this, but no luck so far.
asked Feb 21, 2011 at 01:52 PM
Use the WWW class to open/load the local file or use System.IO stuff for reading.
I have a xitami webserver on a windows machine(actually a very old laptop with Win98 :D) and use this php script:
...and it works great. In Unity i get this as result:
I check it numerous times, but I doesn't make sense to me why it kept returning "Failed!". So I decided to post my test code here.
Here's my C# test code
And here's my php code
Any help about why it kept returning "Failed!" and how to fix it will be appreciated.