Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
# File upload file size in bytes. By default 10485760 bytes (10Mb)
fileUpload.maxFileSize = 10485760
#comma separated list of mime types allowed for upload
fileUpload.allowedMIMETypes = image/png, application/pdf

The maxFileSize property might have value between 0 and 50 Mb, while default value is 10Mb. 

Adding support for assigning file to the certain individuals class 

For instance, you can set domain for vitro-public:storedFile object property to http://purl.org/ontology/bibo/Book. After that, any instance of this class will have options to link files in of the MIME type specified in the runtime.properties. The user with edit privileges can attach files and remove attached files, while the user with read privileges can download files. 

...