Jump to:

10843 Posts in 2514 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » SWFUpload with MultiForm

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 896 Views
  • joern
    Avatar
    Community Member
    28 Posts

    SWFUpload with MultiForm Link to this post

    Hello,
    I create new records from the frontend and in the first step i would like to upload the images.
    I would like to create the record and his relationship only at the end of the process to avoid unnecessary data in the database.

    The upload works, and I get the ID of the file.
    But how do I save it in my multiFform-Session? Do I use a separate handleswfupload function?

    Can i change the SWFUploadControls->$image_class?

    I hope you can help me.
    Thanks Jörn

  • UncleCheese
    Avatar
    4085 Posts

    Re: SWFUpload with MultiForm Link to this post

    Yeah, in your _config.php, just add:

    SWFUploadControls::$image_class = "MyImage";

  • joern
    Avatar
    Community Member
    28 Posts

    Re: SWFUpload with MultiForm Link to this post

    hi,
    Thanks for your reply.
    The class in the files-table is now correct, but how do I get in the form of multi-session?
    I still have to use my own swfhandler-function and link it in there?

  • UncleCheese
    Avatar
    4085 Posts

    Re: SWFUpload with MultiForm Link to this post

    Shouldn't have to update the handleswfupload().. you have the ID, so there must be a way to store the value in your MultiForm module.. I've never used that module, but I assume it works on sessions. You could do it crudely by using Session::set(), I suppose.

  • joern
    Avatar
    Community Member
    28 Posts

    Re: SWFUpload with MultiForm Link to this post

    Yes, I'll have to save it in the session, but the ID is handed back again to the Flash.
    I must save it before, right?

    At the end of the form-step, I will save it from the session in the multi-form.

    896 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.