Defaults for FileField input

Defaults for FieldFIeld

It would be nice if we could provide a default argument to a FileField. During application development, I am finding myself constantly uploading my test input files to test new features. It would save me some time if there was an easy way to automate this during development.

Current workarounds

It is possible to write some logic which reads the test files if they are not provided as a parameter.

Hi Ben, welcome to the community!

If you are building a simple or tree-type app, you can save a revision and thereby not needing to re-upload. Would that help?

What is a tree-type app?

There are 3 app-types: editor, simple, tree. Simple and tree have a database and can store revisions.

More info is written out here: App types | VIKTOR Documentation