Stryke Docs - 1.9.0

Stryke Docs - 1.9.0

›Using an App

Overview

  • Overview
  • Quick Start Guide
  • The Playground app

Changelog

  • Stryke Changelog

Developing an App

  • Users Overview
  • Create a new App
  • Entity Definition
  • Actions Definition

    • Actions Definition
    • Scripts and source code
    • Triggers
    • Templates and views
  • Where is your app's data stored?
  • Synchronising app instances

Using an App

  • Stryke App UI
  • Working with your app's data
  • End users
  • Access Control
  • Files

API

  • Stryke API
  • Stryke queries

Developer Tools

  • Tools

Stryke Library

  • Stryke Library Reference

Files

Stryke supports attaching files to records. In order to do so, the entity must be configured to allow files. In order to do that, go to the entity definition and set the canHaveFiles property to true: Allow files on entity

Once setup, files will appear on the relevant records under the app's UI.

Files component

The files component allows you to view, upload and download the files attached to a record.

Files component

Uploading files

To upload a file, click the "Upload" button on the component and select the desired file.

Upload files

After the file is uploaded you will get a confirmation message.

The files attached to a specific record must have unique names. This means that uploading a file to a record that already has a file with the same name will override its the content.

Preview files

Clicking any row of the component allows you to preview that file.

Preview files

The table below lists the formats supported for preview within the app's UI.

File TypeMime Type
PDFapplication/pdf
Texttext/plain
JSONapplication/json
Imageimage/jpg
Imageimage/jpeg
Imageimage/png
Imageimage/gif
Videovideo/mp4
Audioaudio/mp3
Audioaudio/x-m4a
OtherAny other mime type

Note that the preview is only supported for some file types, but files of those types can still be uploaded/downloaded normally.

Download files

Clicking the download button allows you to download the file to your machine.

Preview files

Files API

You can interact with your app's files also using the Stryke API. Files are related to individual data records via an object called FileMedata.

The FileMetadata API allows generating pre-signed download and upload URLs for your files.

← Access ControlStryke API →
  • Files component
  • Uploading files
  • Preview files
  • Download files
  • Files API
Stryke Docs - 1.9.0
Docs
Docs HomeAPI DocsStryke Tools
Community
Stryke HomeTwitterGithub
Contact Us
support@stryke.io
Copyright © 2021 Viroppa