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   538 Views

Avatar
ivo

Community Member, 19 Posts

2 November 2011 at 9:34pm

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

Community Member, 19 Posts

3 November 2011 at 6:08am

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"
);