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

Member problem of SWFUploadfield on the frontend


Go to End


2 Posts   1357 Views

Avatar
Pango853

Community Member, 2 Posts

18 September 2010 at 8:35am

I used SWFUploadField in a frontend form. It works almost perfectly but everytime after I uploaded the file. No matter I logined or not, the OwnerID of the file is still 0.

I found out that when the form submitted, the Member::currentUser() is NULL.

Is that because of the SWF uploader(May be the session is different)?

Any idea or solution will be really appreciated.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 September 2010 at 4:44am

I recommend switching to Uploadify. http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com