I'm currently working on creating a small online catalog that showcases various housing projects and allows users to download related documents.
The data structure I am using is fairly straightforward: each project has its own set of properties and a collection of associated documents. Each document also has its own properties and file attachment (the one that users will download).
However, I'm facing some challenges with the back-office system, where administrators can manage projects. This is where I'm struggling to achieve my desired functionality.
On the front-end side, I am developing objects that represent projects in JavaScript, and I want to send this information to the back-end (PHP) for database operations. Is there a way to serialize an entire project along with its attached documents (including files) so that it can be sent from JavaScript to PHP?