Name
File transfer service

Description
Allow anonymous users to upload files

Pack
{
  "pages": [],
  "views": [
    {
      "name": "ListUploads",
      "table": "uploads",
      "min_role": 1,
      "on_root_page": false,
      "viewtemplate": "List",
      "configuration": {
        "layout": {
          "above": [
            null,
            {
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "block": false,
                      "contents": "file",
                      "textStyle": ""
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "block": false,
                      "fieldview": "Download link",
                      "textStyle": "",
                      "field_name": "file"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            },
            {
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "block": false,
                      "contents": "time",
                      "textStyle": ""
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "block": false,
                      "fieldview": "show",
                      "textStyle": "",
                      "field_name": "time"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            }
          ]
        },
        "columns": [
          {
            "type": "Field",
            "fieldview": "Download link",
            "field_name": "file",
            "state_field": "on",
            "header_label": ""
          },
          {
            "type": "Field",
            "fieldview": "show",
            "field_name": "time",
            "state_field": "on",
            "header_label": ""
          }
        ],
        "viewname": "ListUploads",
        "default_state": {
          "file": null,
          "time": null,
          "_create_db_view": false,
          "_omit_state_form": false
        },
        "view_to_create": "",
        "create_view_label": "",
        "create_view_display": "Link"
      },
      "default_render_page": ""
    },
    {
      "name": "showupload",
      "table": "uploads",
      "min_role": 10,
      "on_root_page": false,
      "viewtemplate": "Show",
      "configuration": {
        "layout": {
          "above": [
            {
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "contents": "file",
                      "isFormula": {}
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "fieldview": "Download link",
                      "field_name": "file"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            },
            {
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "contents": "time",
                      "isFormula": {}
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "fieldview": "show",
                      "field_name": "time"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            },
            {
              "type": "view_link",
              "view": "Own:newupload",
              "minRole": 10,
              "isFormula": {},
              "view_label": "Upload another file"
            }
          ]
        },
        "columns": [
          {
            "type": "Field",
            "fieldview": "Download link",
            "field_name": "file"
          },
          {
            "type": "Field",
            "fieldview": "show",
            "field_name": "time"
          },
          {
            "type": "ViewLink",
            "view": "Own:newupload",
            "minRole": 10
          }
        ],
        "viewname": "showupload"
      },
      "default_render_page": ""
    },
    {
      "name": "newupload",
      "table": "uploads",
      "min_role": 10,
      "on_root_page": true,
      "viewtemplate": "Edit",
      "configuration": {
        "fixed": {
          "time": null,
          "preset_time": "Now"
        },
        "layout": {
          "type": "card",
          "contents": {
            "above": [
              {
                "type": "blank",
                "contents": "Upload your file here!",
                "isFormula": {}
              },
              {
                "type": "line_break"
              },
              {
                "type": "line_break"
              },
              {
                "type": "field",
                "fieldview": "upload",
                "field_name": "file"
              },
              {
                "type": "line_break"
              },
              {
                "type": "action",
                "rndid": "7b92a5",
                "minRole": 10,
                "isFormula": {},
                "action_name": "Save",
                "action_style": "btn-primary",
                "configuration": {}
              }
            ]
          },
          "isFormula": {}
        },
        "columns": [
          {
            "type": "Field",
            "fieldview": "upload",
            "field_name": "file"
          },
          {
            "type": "Action",
            "rndid": "7b92a5",
            "minRole": 10,
            "isFormula": {},
            "action_name": "Save",
            "action_style": "btn-primary",
            "configuration": {}
          }
        ],
        "viewname": "newupload",
        "view_when_done": "showupload"
      },
      "default_render_page": ""
    }
  ],
  "tables": [
    {
      "name": "uploads",
      "fields": [
        {
          "name": "file",
          "type": "File",
          "label": "file",
          "stored": false,
          "required": false,
          "is_unique": false,
          "attributes": {
            "min_role_read": "10"
          },
          "calculated": false,
          "expression": null,
          "reftable_name": "_sc_files"
        },
        {
          "name": "time",
          "type": "Date",
          "label": "time",
          "stored": false,
          "required": false,
          "is_unique": false,
          "attributes": {},
          "calculated": false,
          "expression": null
        }
      ],
      "triggers": [],
      "versioned": false,
      "constraints": [],
      "min_role_read": 1,
      "min_role_write": 1
    }
  ],
  "plugins": [
    {
      "name": "material-design",
      "source": "npm",
      "location": "@saltcorn/material-design"
    }
  ]
}