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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

uploadify wont upload non image files


Reply

2 Posts   530 Views

Avatar
ivo

2 November 2011 at 9:34pm Community Member, 19 Posts

Hi all, Hi UncleCheese,
i have troubles with uploading pdf or any non image files with uploadify and FileDataObjectManager.
The file gets uploaded but uploadify displays an IO error and no file is saved to silverstripe.

Image Files just work fine.

the web and uploadify forums seem to know the problem but i couldnt find any solution.

Any ideas on that? plz

Avatar
ivo

3 November 2011 at 6:08am Community Member, 19 Posts

ok my fault:
i had:
class Download extends DataObject

with

static $has_one = array(
'Attachment' => 'File',
"DownloadItemPage" => "DownloadItemPage"
);
...

and it should be

class Download extends File

with

static $has_one = array(
"DownloadItemPage" => "DownloadItemPage"
);