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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Member problem of SWFUploadfield on the frontend


Reply

2 Posts   667 Views

Avatar
Pango853

18 September 2010 at 8:35am Community Member, 2 Posts

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

25 September 2010 at 4:44am 4085 Posts

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