+ 1

How to upload a file/document to a website using PHP and JSON?

I have multiple student records stored in a json database. Each student record should contain their separate files uploaded by the admin of the Web based database system. How do I upload a file from the pc on to the website (which will be stored in the json database) using php?

6th May 2022, 1:13 AM
Jay
2 Réponses
+ 1
You can "Upload" The file by having a json file alredy in your web host, where you only "Append" or "Replace" With The content of the uplodaded file, you can upload the file by : Passing its content as rae lines to host.
6th May 2022, 2:47 PM
NoVa
NoVa - avatar
0
Hendrick Y. "NoVa" could you give an example of the php code?
10th May 2022, 9:14 AM
Jay