I'm here again hoping for some help. Reading the gears docs, I saw a method called captureFile from ResourceStore class. it fits right where I need. I have an app that the users fill an form with some data, and they can also put some files in <input type='files'>. So, gears captures the file with the method captureFile and when the machine has internet connection, the app creates a form with some <input type='file'> and using the method of FileSubmitter it fills the inputs and after sends the request with the form created. It works fine, but I'm using depracated methods and they only works under I.E and Firefox. I wanna change this because now, the users are going to use Chrome.
The problem is that I don't see clearly how can I do what I need for another way. I read about the method openFile from desktop and I think I can get the file contents and put it on sqlite, but the problem is, how can I send it to the server after connection is established? My code on server side expects file inputs. How can I fill them if I can't use the depracated methods? and if I send using HttpRequest.send() by posting the contents of file in postData, how will I get the data passed on server side? I didn't see this on docs. Perhaps an example of using HttpRequest.send to send files to a web app can make me see what I need to do. thanks for attention and sorry bad english.
