Skip to content

Working With Local Files

Bill Yosafat edited this page Mar 17, 2021 · 1 revision

File Labels

While working with local files, below labels are given for each particular purpose :

  • temp. Files which reference are in local machine and scheduled to be uploaded to Google Drive.
  • missing link. Files has not been uploaded to Google Drive upon closing application.
  • local. Changes will be applied directly to the file content on local machine.

Browser Dependent File Type

Application will try to guess file MIME type based on file name extension if browser file handler doesn't provide file type info. Unsupported extension will be given MIME type of application/octet-stream.

Temporary Files

Opening these files will read it's content from local machine. These files will be automatically synced to Google Drive upon dropping them to application even while on trash. Files which sync process are interrupted by closing application will be treated as missing link. Saving the file will update it's content in browser storage and resync.

Missing Link Files

Files that has not been uploaded to Google Drive upon closing application will be given label missing link. Deleting this files will completely removed it from browser storage. Folders are exception.

Saving Changes to Local Files

While dropping files to application, user can active File System API feature by holding certain key to enable local editing of dropped files. Any changes made to the content of the file will direcly changes the file content on local machine.

Closing Application

Files with type of non text (i.e. not stored in browser storage) and successfully synced to Google Drive will be given media link URL on the next application run. Files with type of text will be loaded from browser storage. Both condition will remove temp label from the file.