punkave / symfony2-file-uploader-bundle

Multiple file uploads, based on the BlueImp jQuery uploader. Makes it very easy to attach one or more files to whatever you're editing. It's also easy to present that list again on a later edit so that existing files can be managed side by side with existing attachments.
157 stars 86 forks source link

Configuration Issues #25

Open theZizoo opened 11 years ago

theZizoo commented 11 years ago

I changed the parameter for: file_uploader.originals

However, FileManger->getFiles() does not return the files now because 'originals' is hardcoded in FileManager.php:

$dirs = glob("$folder/originals/*");

Also, uploading stops working if I do not have at least one option for file_uploader.sizes:

file_uploader.sizes: ~

I am quite new to Symfony 2, so it is possible I am missing something.

Any help would be greatly appreciated.

christian-kolb commented 11 years ago

I had the same problem. It's because those aren't parameters for the config.yml but the properties.yml. You have to set them there, than it works.

I would like to see them in the config.yml, as they (especially the size parameters) aren't really a thing you have to change for each installation. You could still put them into the properties file, when using variables in the config.yml. But I would really like to see them in the config.yml.