Closed alexgenovese closed 12 years ago
Yup, in the
class qqFileUploader {
private $allowedExtensions = array();
You can specify the extensions you want to allow in the array, so something like this:
private $allowedExtensions = array("gif", "jpg", "pdf");
More documentation at the Valums' uploader project site (which is what is used for the uploading functionality): https://github.com/valums/file-uploader
Please note that I haven't tested this, but I think it should work since my changes to the Valums' uploader were minimal (just to get it working on CakePHP).
Hello, first of all I want to say thanks to create this plugin.
How can I set one kind of file to upload (for example only PDF) ?
Thanks -A