Menu

#4 Store uploads in the database

open
nobody
None
2
2007-04-30
2007-04-30
No

create a program that converts the uploads path and puts them into the databeses.

Add a new field in the wiki syntax that can be used to denote a file field. This could look as follows

<wikiUploadFile id="picture" rendersInline="true" />

In the display template, we would add one of the following lines:

<wikiFileLink id="picture" />
<wikiFileContent id="picture" />
<wikiFileInformation id="picture" />

When pointing to the page, the content is shown as inliune graphics link if the destination page contains a file field with the attribute rendersInline="true". Otherwise, the link shows the title and forwards to the page that contains links to the file(s).

This means that also the **:i:...** link and the **...** link have to be rewritten.

The type BinaryPage could then be removed. Instead, we would have a new table that contains the file specific information (basically the metadata that is now part of the abstractPage table) and the concrete content.

BTW: This means that the old page data has to be converted as well (moving content away fro the description field into normal wiki fields.

Discussion


Log in to post a comment.