UploadTable.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. fields:
  2. file:
  3. required:
  4. msg: you must choose a file
  5. sfFileValidator
  6. mime_types:
  7. - 'application/rtf'
  8. - 'application/pdf'
  9. - 'application/postscript'
  10. - 'application/vnd.oasis.opendocument.text'
  11. - 'application/zip'
  12. - 'application/x-zip'
  13. - 'application/x-zip-compressed'
  14. - 'application/x-gzip'
  15. - 'application/bzip2'
  16. - 'application/x-tar'
  17. - 'application/x-bzip2'
  18. # audio
  19. - 'audio/x-ogg'
  20. - 'audio/mpeg3'
  21. - 'audio/x-mpeg-3'
  22. - 'audio/mpeg'
  23. - 'audio/x-mpequrl'
  24. # video
  25. - 'application/x-troff-msvideo'
  26. - 'video/mpeg'
  27. - 'video/x-mpeg'
  28. - 'video/avi'
  29. - 'video/msvideo'
  30. - 'video/x-msvideo'
  31. - 'video/x-flv'
  32. # image
  33. - 'image/gif'
  34. - 'image/x.djvu'
  35. - 'image/vnd.djvu'
  36. - 'image/djvu'
  37. - 'audio/x-ogg'
  38. - 'image/gif'
  39. - 'image/tiff'
  40. - 'image/jpeg'
  41. - 'image/jpg'
  42. - 'image/pjpeg'
  43. - 'image/png'
  44. - 'image/x-png'
  45. - 'image/svg'
  46. - 'image/svg+xml'
  47. - 'image/svg-xml'
  48. - 'text/xml-svg'
  49. - 'image/vnd.adobe.svg+xml'
  50. - 'text/rtf'
  51. - 'text/html'
  52. - 'text/plain'
  53. mime_types_error: we don′t accept such file format
  54. max_size: 1024000000
  55. max_size_error: this file is too big