FileStore step by step example with 4.2.1

前端 未结 1 1362
予麋鹿
予麋鹿 2021-01-25 17:51

I am wanting to upload a csv file, validate it, and then upload into an existing model. However, I am using ATK4.2.1 and finding that either the example code that have googled

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-25 18:30

    You can find some installation instructions here:

    http://agiletoolkit.org/doc/filestore

    1. Import this SQL into your database atk4-addons/misc/docs/dbupdates/filestore-001.sql
    2. Create a new page, page_fileadmin extends filestore/Page_FileAdmin
    3. Create directory 'upload' and make it writable.
    4. In your model instead of addField use $this->add('filestore/File');

    If you need images, use filestore/Image instead.

    Please join https://groups.google.com/forum/?fromgroups#!forum/agile-toolkit-devel for updates on new documentation.

    0 讨论(0)
提交回复
热议问题