Page 1 of 1
File manipulation in server code script
Posted: Wed Jan 21, 2015 7:46 am
by Aeneas McBurney
Hi,
I have an html template file that I want to open in a server code script, update some values and then save back to the file system as a separate html file. Is this possible with server script?
So far I have only been able to open and change the html (string replacements) but am not sure of commands to save back to the file system..
Thanks,
Aeneas
File manipulation in server code script
Posted: Wed Jan 21, 2015 10:23 am
by Ihor Didevych
Hi Aeneas,
You can use Cordova File Plugin. It is already integrated in Appery.io project
Here is documentation, that can be helpful
https://github.com/apache/cordova-plu...
File manipulation in server code script
Posted: Wed Jan 21, 2015 4:49 pm
by Aeneas McBurney
Are there any code examples where this plugin is used in server script? I'm a little bit new to javascript.
Thanks,
Aeneas
File manipulation in server code script
Posted: Thu Jan 22, 2015 7:42 am
by Maryna Brodina
Hello Aeneas,
Unfortunately no code snippets.
File manipulation in server code script
Posted: Thu Jan 22, 2015 7:50 am
by Aeneas McBurney
Are you able to provide example how to save an html file back to the server after manipulation?
Thanks,
Aeneas
File manipulation in server code script
Posted: Sat Jan 24, 2015 1:38 pm
by Alena Prykhodko
Hello,
Regrettably we do not have ready solution.
File manipulation in server code script
Posted: Sat Jan 24, 2015 4:18 pm
by Aeneas McBurney
I'm not sure what has happened to your support but it used to be helpful and you would try and find solutions for us.