Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploadify didn`t accept selected uploadfolder


Go to End


965 Views

Avatar
benni91

Community Member, 72 Posts

30 August 2011 at 8:04pm

at first: sry for posting it twice. but i realy need an answer for this
-----------------------------------------------------------------------------------

Hi @ all,

uploadify didn't accept the selected upload folder. after searching the forum i found this.

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) {

http://www.silverstripe.org/dataobjectmanager-module-forum/show/13369#post307249#post307249

but i'm new to SS and PHP. Cause of that i don't know what to do. and i don't understand that code snippet.

can someone help me to fix uploadify?

thx
benni