Writing a JSON file to server through Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KushShukla
    New Member
    • Jan 2014
    • 11

    Writing a JSON file to server through Javascript

    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • james88
      New Member
      • Aug 2017
      • 2

      #3
      This might help: JSON Formatter

      Comment

      Working...