php - How to automate/simplify this content submission scenario? -


I am trying to think of a strategy to automate or simplify content submission. A presentation is by default through a form and calculates as an entry (some text fields + random numbers of file upload fields). Through a web interface, I can imagine it on a regular basis. But how can I automate the process to simplify it?

I have no special solution, just thinking what the most logical views are that most people will agree best in this case. I thought about folder submission, where the user selects a folder or path of multiple folders that he wants to store and the system will internally analyze the content and break them into multiple entries or 1 entry, and then Essentially populate as many entries as if it were done through a web form.

Any thoughts on this? What challenges should I expect from this approach, and what are the best ways to do this? I hope it is clear that what I am trying to achieve.

In a way, a content bundle specification (which does not have to be complicated) can be created for example , Can contain files, and an XML document that contains all the information on the items to be posted. The user can upload simple contentBundle.zip .

The server will uncompress the archive in a temporary folder, then it will parse the contained XML file. After this you can determine how many items are submitted, validate their content, remove files related to each item, and store each one as a separate entity. The XML can look like this:

  & lt; Items & gt; & Lt; Items & gt; & Lt; Name & gt; John Foo & lt; / Name & gt; & Lt; Mobile & gt; + 111111111 & lt; / Mobile & gt; & Lt; Image & gt; 43.gif & lt; / Image & gt; & Lt; / Item & gt; & Lt; Items & gt; ... & lt; / Item & gt; & Lt; / Item & gt;  

Now you can easily determine how many 'items' are stored and can separate the contents of the archive.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -