IMO is better to just make a connection to the server for each file and act according to the response.
Each connection can be done inside a background worker, in order to alleviate the GUI to be frozen while the transfer occurs.
Hope this helps.
Reverend Jim commented: Excellent point but watch out for SQL injection. +9