7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 354 Views |
-
uploadify wont upload non image files

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

3 November 2011 at 6:08am
ok my fault:
i had:
class Download extends DataObjectwith
static $has_one = array(
'Attachment' => 'File',
"DownloadItemPage" => "DownloadItemPage"
);
...and it should be
class Download extends File
with
static $has_one = array(
"DownloadItemPage" => "DownloadItemPage"
);
| 354 Views | ||
|
Page:
1
|
Go to Top |

