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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Problem uploading to folders with DOM & Uploadify

Go to End

3 Posts   1102 Views


4 Posts

23 April 2011 at 3:17pm

I'm having a "small" problem. I'm making a tour list and using TourHolder/TourPage and that works fine. But I'm also using DataObject to allow tours to have many images. I've managed to get it to work BUT... The problem starts when I'm uploading with the uploadify thingy.

It doesn't matter if I choose a folder in the dropdown It always goes to the "Upload" folder and not the folder I chose in the dropdown. Even when using "Import existing" it copies everything to the "Uploads" directory (given that I uploaded the images to another folder through SS file manager beforehand)...

What could be wrong? Everything else seems to work. The relations and everything but this is the only problem I'm having.... so far... I really don't want the customer to have a HUGE "Upload" folder. That kind of defeats the purpose of having folders in :)

Thanks in advance.... Hope this is just something stupid I'm doing wrong... Really tierd...

- Ranie


4 Posts

24 April 2011 at 1:06am

If I use $manager->setUploadFolder("Tours") it works. As in It creates that folder (/assets/Tours) and uploads to it. But If I choose another folder in the upload popup It always uploads to the Tours directory (not /assets/Tours/tour1) etc....


Community Member, 1 Post

4 May 2011 at 3:56am

I have the same problem (exactly)