-
Notifications
You must be signed in to change notification settings - Fork 104
load assets outside of views dir #57
Comments
any luck? |
I tried to add
It actually generates a CDN address for the asset but it's not being processed and uploaded to the CDN. I am assuming that we have to scan on start time because of the propagation time it takes the files to go from S3 to CDN. Can't think of any way to work around this... |
maybe just use in your views and since it will On Wed, Dec 4, 2013 at 3:05 AM, Michael Derazon notifications@github.comwrote:
|
@mderazon how did that work? |
@niftylettuce How would you recommend to handle dynamically generated assets? For example, the adding and displaying of user profile images. Use case: someObj.on "uploadComplete", (err, tmpFile) ->
image = CDN(tmpFile, raw: true)
saveImage(image) I would be happy to contribute if you think this type of functionality wouldn't be out of scope for this project. If it is out of scope, do you think handling these on-the-fly uploads would be best handled using the |
@petesaia why not just use Gravatar for user profile images? I don't know the use case or why you need to handle dynamically generated assets, why aren't they generated ahead of time? Not sure what your service/use case is... there is probably a better way to solve it for you ahead of time (maybe Grunt or caching somehow?). |
@niftylettuce Thanks for the quick reply and suggestion. The use case of an avatar was just an example. For the actual application, users are able to upload multiple images which need to get pushed up to the CDN post-startup. We actually decided to go with pkgcloud for only that component and stick with express-cdn for assets which are perfectly okay to be pre-compiled and pre-cached. |
would be nice to be able to use this for assets inside node.js code i.e :
Is there any way to achieve this ?
Thanks !
The text was updated successfully, but these errors were encountered: