Using uploadify, I noticed that if I set uploadFolder (e.g. to "Videos") & then allow folder selection during uploads, the dropdown for folder selection ALWAYS resulted in "assets/Uploads" being highlighted by default -- instead of "assets/Videos".
Below is a patch to correct. From what I gather, this was the intended behavior, as the $folder variable was never accessed after checking if $uploadFolder exists.
Index: www/uploadify/code/UploadifyField.php
===================================================================
--- www/uploadify/code/UploadifyField.php (revision 13)
+++ www/uploadify/code/UploadifyField.php (working copy)
@@ -485,7 +485,7 @@
*/
public function CurrentUploadFolder() {
if($this->uploadFolder) {
- $folder = Folder::findOrMake($this->uploadFolder);
+ return Folder::findOrMake($this->uploadFolder);
}
if($result = $this->Files()) {
if($result instanceof File) {