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.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multiform File Upload


Go to End


1391 Views

Avatar
an_Eskimo

Community Member, 10 Posts

30 January 2014 at 12:13pm

Hey guys, I am working with the Multi step form module, all is working swmmingly, even created a summary page that allows users to return to specific steps to edit them.

I have one tiny issue, which for the site I am building is a rather large issue, where when working with upload fields don't actually link files to the DataObject created by the form.

I was wondering if there was a way to account for this. I have the file uploads on 6 steps, and these steps all have $has_many relations with a class that extends file. I thought this would work, but as I have noticed, the serialized data returns an array of ids. Ie:

 $data['Step']['StepFiles']['Files'] which have ids. 

Any help would be HUGELY appreciated.