Appearance
Files
Editing and working with local files is very important for businesses. The host applicationn provides a number of functions to support editing these with local applications as seen in the interface.
Architecture
For most users the internal architecture is not important, but here is a description of the internal processes used for a deeper understanding.
Edit Sequence
Edit File command
File Change Sequence
File Change during upload
When a file change is detected during an upload, the upload is immediately cancelled. Once the upload has been cancelled, the normal file change sequence as described above is executed.
Resume Sequence
CAUTION
This is not implemented yet.
When the system starts, the aeppic Application can ask the client to resume any uploads. A list can be generated for all files where the upload was interrupted by looking for the upload marker files. Each file can then be resumed which will start watching the files for changed (not opening any editor though) and the file is being uploaded.
If edit is called (instead of resume) the call would be ignored, therefore it is important for the client application to read the pending upload list and ask the user about what to do.
The pending file upload could be cancelled and the data_url overwritten with the latest known version. The actual file can then be opened for editing again (it would still have any changes made since downloading).