zimki | documentation | search
 
Zimki Documentation - CookBook.StaticFiles

In addition to publishing JavaScript functions to paths, you can also publish static files to paths. To upload a file using the portal, go to the Files section under REALMS in the left-hand menu. Click Choose File and pick a file you want to upload, then click on the Upload new file button.

A new line will appear in the table under the upload form, with basic details about the file you just uploaded. Your realm now knows about your file, but it is not publicly visible anywhere yet. To do that, you have to publish it to a path.

To publish a file click on the word "No" in the Publications column of the file list table. Enter '/' in the textbox that appears and click Publish. If you now visit your realm, you should see the file that you uploaded; I chose to upload an image, but you're free to upload a text file, a small movie or anything else.

Go back to the Files view and see that our file now has "Yes" listed under publications. This means it has been published to at least one path. Click on the word "Yes" to view or change the file's publication paths.

You can publish a file to multiple paths without uploading the file again, to avoid burning more of your storage quota than you really need to.

See also

  • zimki.file provides a javascript api for dealing with files (creation, search)
  • File provides operations on files (publication, deletion)

Parent

CookBook