To manage uploads a Media Root is added to a Workspace. Multiple Media Roots are supported but uploads will default to the first Media Root found.
import {Config} from 'alinea'
Config.workspace('Main workspace', {
roots: {
// ...
media: Config.media()
}
})
Media Roots should be defined within a Workspace.