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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

FileUploadField


Go to End


2 Posts   2324 Views

Avatar
Kasutajanimi

Community Member, 15 Posts

31 August 2009 at 6:35am

I know how to make TextFields in the CMS.
But how I can make field, which allow for file upload dialog and after uploading the adress of uploaded file will be written to DB?

Avatar
JoshuaLewis

Community Member, 81 Posts

1 September 2009 at 10:21am

Connecting an image to a page and calling it in a template.
http://doc.silverstripe.org/doku.php?id=tutorial:2-extending-a-basic-site#adding_a_staff_section

Other kinds of files.
http://doc.silverstripe.org/doku.php?id=recipies:adding-a-file-to-a-page

Some of the documentation is incomplete or old but it is fairly well organized and has lots of useful information if you look.