Grapesjs: disable file upload in asset manager

Created on 28 Nov 2017  路  6Comments  路  Source: artf/grapesjs

is there way to disable asset upload, we want to force user to use approved images only and that to via asset manager dialog.

Most helpful comment

Hi @krunal039,

The docs indicate that you can pass upload: false to disable it (see the comment in the "Examples" section). Have you tried doing that? I don't have time to test it out myself at the moment, but I'd be happy to help out more later if you try that out and are still having trouble.

All 6 comments

Hi @krunal039,

The docs indicate that you can pass upload: false to disable it (see the comment in the "Examples" section). Have you tried doing that? I don't have time to test it out myself at the moment, but I'd be happy to help out more later if you try that out and are still having trouble.

@krunal039 as already mentioned by Ryan, upload: false is the way to go

How to hide the box of dragging it still appears i use
please advise thanks. look false has no effect in my case, i mean its not working so i decided to stop
and hide and make selecting image , and import from url the only options .

thanks again my friend

assetManager: { assets: images, upload: false/*, uploadText: 'Uploading is not available in this demo',*/ },

@shareefhiasat just use CSS

@artf where do i change the css? I'm using the grapesjs-preset-webpage

where do i change the css?

Wherever you want, just place it after GrapesJS' CSS

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Geczy picture Geczy  路  3Comments

kosirm picture kosirm  路  3Comments

faizansaiyed picture faizansaiyed  路  3Comments

tribulant picture tribulant  路  3Comments

mathiasbc picture mathiasbc  路  3Comments