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 wont upload non image files


Go to End


2 Posts   1001 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"
);