Profile Options - Vixys/VxJsUploadBundle GitHub Wiki

This is a non exhaustive list of the option you can use in a profile. If you want to learn you more you should take a look at Blueimp jQuery-File-Upload package.

upload_dir

A string containing the URL to which the request is sent.

  • Type: string
  • Default: 'upload'

erase_file

A boolean. If true, it will be erase the file if there is already a file with the same name.

  • Type: boolean
  • Default: false

unique_filename

A boolean. If true, it will generate a unique file name.

  • Type: boolean
  • Default: false

image_versions

An array with all version of image you want.

  • Type: array
  • Default:
image_versions:
    thumbnail:
        max_height: 80
        max_width: 80

max_file_size

Contains the max size for an upload file.

  • Type: integer
  • Default: null

min_file_size

Contains the min size for an upload file.

  • Type: integer
  • Default: 1

max_number_of_files

Contains the max numbe of file for an upload of multiple files.

  • Type: integer
  • Default: null

max_width

Contains the max width size for an image file.

  • Type: integer
  • Default: null

max_height

Contains the max height size for an image file.

  • Type: integer
  • Default: null

min_width

Contains the min width size for an image file.

  • Type: integer
  • Default: 1

min_height

Containe the min height size for an image file.

  • Type: integer
  • Default: 1