This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

Using uploadfs in 2.0.0

Hello there,

In the documentation there is a mention of storing assets in S3 which leads to the 0.5 documentation. However with the new modular paradigm how do we handle data/local.js to add S3 authentication tokens which differ between dev/ staging/ production.

Is data/local.js still available, does it work in the same way?

Best,
FP

Hi Fotis,

Good question. The uploadfs configuration is exactly the same but you now do it by adding that uploadfs property to the configuration of the apostrophe-attachments module.

data/local.js works exactly as before, and it merges with the object you pass to apostrophe in exactly the same way as before. So you can provide additional server-specific configuration for any module just as before.

(Generally speaking we’re encouraging folks to post HOW-TO questions to stackoverflow with the apostrophe-cms tag, which we’re monitoring. But I can see that this one touches on some general “is this going to work the same in 2.0?” stuff as well.)