-
Notifications
You must be signed in to change notification settings - Fork 13
create:upload_pref
Rob Sanchez edited this page Mar 11, 2015
·
1 revision
Create a new file upload destination.
$ eecli create:upload_pref <name> <server_path> <url>
Descriptive name
Server path to the upload directory
URL to the upload directory
Only allow images.
Max file size in bytes.
Max width in pixels.
Max height in pixels.
Create a file upload destination with default options
$ eecli create:upload_pref "My Files" ./uploads/files /uploads/files/
Create a file upload destination with images only
$ eecli create:upload_pref --images_only "My Files" ./uploads/files /uploads/files/
Create a file upload destination with max dimensions
$ eecli create:upload_pref --images_only --max_width=1024 --max_height=1024 "My Files" ./uploads/files /uploads/files/
- create:category
- create:category_group
- create:channel
- create:field:<fieldtype>
- create:field_group
- create:global_variable
- create:member
- create:member_group
- create:snippet
- create:status
- create:status_group
- create:template
- create:template_group
- create:upload_pref