Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » uploadify wont upload non image files

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 519 Views
  • ivo
    Avatar
    Community Member
    19 Posts

    uploadify wont upload non image files Link to this post

    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

  • ivo
    Avatar
    Community Member
    19 Posts

    Re: uploadify wont upload non image files Link to this post

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

    519 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.