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

Upload module for on webpages


Go to End


5 Posts   1286 Views

Avatar
buffy999

Community Member, 18 Posts

16 July 2014 at 1:34pm

Hi,

I need a Upload module, i want to have the attach file button to be uploaded on the page and save it there on the web page, so that the other users can click any document to view it.

Is there a module for this??

Thanks,
Kirsten

Avatar
geekdenz

Community Member, 37 Posts

3 August 2014 at 11:07pm

Haven't tried this, but maybe try using the SS UploadField component:
http://doc.silverstripe.com/framework/en/reference/uploadfield

I haven't used it in the front-end, but it definitely works in the backend. You may need to include some Requirement::javascript for it to work in the front-end.

Avatar
buffy999

Community Member, 18 Posts

7 August 2014 at 9:11pm

ok, i had a look at the reference but i'm not sure if that is what i'm looking for, what i'm looking for is, i need a upload button on the front-end pages not in the CMS, so that way my users can upload their files onto the front-end pages, and actually saved there for other users to download for their resources. So the document won't drop off the page once refreshed the page or went to other pages and come to that page to ensure the document is actually there. Is that something we have in SilverStripe or not?

I don't know if the DataObjectManager Module and Uploadify covers that or not?

Avatar
geekdenz

Community Member, 37 Posts

7 August 2014 at 10:58pm

It says on that page that the UploadField is supported in the front-end as well. There is even sample code there.

This works: http://www.sspaste.com/paste/show/53e357181e950

Avatar
geekdenz

Community Member, 37 Posts

7 August 2014 at 11:05pm