Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Demos */
- $field = new SortableUploadField('Download');
- $field->setTitle('Download');
- $field->setFolderName('repository/prodotti/download');
- // Aggiungo .exe alle possibili estensioni
- $allowed = $field->getAllowedExtensions();
- $allowed[] = 'exe';
- $field = $field->setAllowedExtensions($allowed);
- $fields->addFieldToTab('Root.Files', $field);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement