( ! ) Warning: session_start(): open(/var/lib/php/session/sess_c6vpd1ut8g8rjivg537p6l2m53, O_RDWR) failed: No such file or directory (2) in /var/www/bitweaver/live/users/includes/bit_setup_inc.php on line 82
Call Stack
#TimeMemoryFunctionLocation
10.0000232848{main}( ).../page_history.php:0
20.0001234904require_once( '/var/www/bitweaver/live/kernel/includes/setup_inc.php' ).../page_history.php:16
30.02141909072BitSystem->scanPackages( ).../setup_inc.php:141
40.02312177352BitSystem->loadPackage( ).../BitSystem.php:1183
50.02312180384include_once( '/var/www/bitweaver/live/users/includes/bit_setup_inc.php' ).../BitSystem.php:1109
60.02352584632session_start ( ).../bit_setup_inc.php:82

( ! ) Warning: session_write_close(): open(/var/lib/php/session/sess_c6vpd1ut8g8rjivg537p6l2m53, O_RDWR) failed: No such file or directory (2) in /var/www/bitweaver/live/kernel/includes/classes/BitSystem.php on line 580
Call Stack
#TimeMemoryFunctionLocation
10.0000232848{main}( ).../page_history.php:0
20.05413729824BitSystem->display( ).../page_history.php:57
30.05443731168BitSystem->preDisplay( ).../BitSystem.php:505
40.05613745648session_write_close ( ).../BitSystem.php:580

( ! ) Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in /var/www/bitweaver/live/kernel/includes/classes/BitSystem.php on line 580
Call Stack
#TimeMemoryFunctionLocation
10.0000232848{main}( ).../page_history.php:0
20.05413729824BitSystem->display( ).../page_history.php:57
30.05443731168BitSystem->preDisplay( ).../BitSystem.php:505
40.05613745648session_write_close ( ).../BitSystem.php:580
- bitweaver
{maketoc}
!Technical Overview
LibertyAttachments is a mechanism for attaching *any* id based mechanism to any LibertyPackage-derived content (wiki, blogs).

The liberty_attachments table is an abstraction to the actual file location. This permits one to use the local file system (liberty_files) or database binary objects (liberty_blobs), tables from other 3rd party application ( like a g_id from [http://gallery.sourceforge.net|gallery2] ), or even links to other websites such as [http://www.pbase.com|pbase]. LibertyAttachable extended objects use the public methods to have a "black box" for attaching data, and the actual location is dependent on the attachment plugin.

All functionality is in the LibertyPackage package. There is a LibertyAttachable class that handles all storing and retrieving of attachment data. Currently, there are plugins for Lulu, PBase and uploads via bit_files. Future support (blobs, gallery2, etc.) will depend on community support and developer interest.

Here is a diagram of how the Tables interface (note this diagram was prior to ReleaseOne and the names have changed in ReleaseTwo, however the ideas are largely still the same):

{attachment id=561 size=large href=/storage/users/2/2/images/561/tiki_content.png}

!Features
!!Ajax Attachments
Ajax Attachments lets you upload files without refreshing the whole form. When you enabled Enforce Content Status you can even upload files when you are first creating a new content item.

!!!For Developers
!!!!Ajax Attachments Process Trees
These two sketches show the basics of how the various ajax attachment templates are called and what key javascript and form elements they contain that make up the entire process. This is handy for debugging or modifying the code.

__Starting at inclusion of edit_storage.tpl from a content edit form__
{code}
edit_storage.tpl
If Mime default enabled
Files: mime_default_upload_inc.tpl
Elms: INPUT: upload
Action: LA.uploader( [this:upload], liberty_upload_frame, form_name )
LA.uploaderSetup( upload )
Files: attachment_uploader_inc.tpl
Elms: FRAME: liberty_upload_frame
Action: LA.uploaderComplete( [this:liberty_upload_frame], upload, form_name )

edit_storage_list.tpl
Elms: DIV: edit_storage_list
DIV: edit_storage_list_tab
Action: BA.updater( [this:edit_storage_list_tab] ) (delete)
BA.updater( edit_storage_list ) (get update after delete - not a great place for this)

Else Legacy
Files: storage.bitfile.php
Elms: INPUT: upload
Action: LA.uploader( [this:upload], liberty_upload_frame, form_name )
Files: attachment_uploader_inc.tpl (see above)

edit_storage_list.tpl (see above)
{/code}

__Starting at the ajax upload handler file__
{code}
attachment_uploader.php
Files: edit_storage_list.tpl (see above)
edit_storage_list.tpl (tab) (see above)
{/code}
Page History
Date/CommentUserIPVersion
26 Oct 2008 (10:00 UTC)
added alias; typos
laetzer85.179.34.17417
Current • Source
Will69.203.72.16115
View • Compare • Difference • Source
Will69.203.72.16114
View • Compare • Difference • Source
spiderr69.134.148.4013
View • Compare • Difference • Source
spiderr66.93.240.2049
View • Compare • Difference • Source
spiderr66.93.240.2048
View • Compare • Difference • Source
spiderr66.93.240.2047
View • Compare • Difference • Source
spiderr66.93.240.2046
View • Compare • Difference • Source
spiderr66.93.240.2044
View • Compare • Difference • Source
spiderr66.93.240.2043
View • Compare • Difference • Source
system0.0.0.02
View • Compare • Difference • Source