By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,982 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,982 IT Pros & Developers. It's quick & easy.

Writing a JSON file to server through Javascript

P: 10
I wrote a chrome extension using javascript, which receives user inputs and using AJAX connect to PHP residing in the server to write them to specified folder in server.

I want to remove this PHP(server side) layer.
Is there any way I can directly write a JSON file to server, without the need of any server side language?

This will make my chrome extension portable across any web stack

Thanks in advance!

Please help
Aug 30 '15 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
Is there any way I can directly write a JSON file to server, without the need of any server side language?
in theory you could do that through the HTTP PUT command, but having a directory writable by everyone is such a security risk, that this mechanism is almost always disabled.
Aug 31 '15 #2

P: 2
This might help: JSON Formatter
Aug 19 '17 #3

Post your reply

Sign in to post your reply or Sign up for a free account.