PHP Classes

JSON file upload

Recommend this page to a friend!

      JSON File Upload  >  All threads  >  JSON file upload  >  (Un) Subscribe thread alerts  
Subject:JSON file upload
Summary:Read contents but not save uploaded file
Messages:1
Author:Chris Glasier
Date:2011-02-20 04:49:14
 

  1. JSON file upload   Reply   Report abuse  
Picture of Chris Glasier Chris Glasier - 2011-02-20 04:49:19
My site (http://glasier.hk) is a kind of machine that enables owners of namesets (sets of names of real world objects, their properties and methods) to upload their json file, work on it and then either download or cut and paste from a popup window (to check OK) at the end of sessions.

So what I want to do is to read the contents of the file, save only the filename and test it by parsing. If not valid JSON obviously it would be rejected. Can I do that?

I have not really got into your script yet but from what I have seen it looks very good ... many thanks.

Chris