Issue #1418💬 AnsweredOpened September 11, 2018by ageir0 reactions

Asset manager not deleting files on server unless upload triggered.

Quick answerby artf

Hi Göranbut reappearing when reloading the page you're initializing the asset manager with assets: allfiles so if you don't change allfiles you always get the same set of imagesAlso when dragging an image to the canvas, the image is not showing up. Only the "missing file" ico and the name of the image. For this, I'd l...

Read full answer below ↓

Question

Running latest version (0.14.29) on local server. Using the example webpage preset. Ubuntu 18.04, Chromium 68. Assetmanager init: And extend image type: The all_files variable is load from php, and it has the right data and format, all images stored on the server. The problem is that the onRemove is not triggering as it should. The images are showing up in the assetmanager modal correctly, but when pressing the X the function is not triggered. But they are deleted in the modal, but reappering when reloading the page. But if I upload a file, then it's working. The confirm popup is showing, and...

Answers (3)

artfSeptember 15, 2018

Hi Göranbut reappearing when reloading the page you're initializing the asset manager with assets: allfiles so if you don't change allfiles you always get the same set of imagesAlso when dragging an image to the canvas, the image is not showing up. Only the "missing file" ico and the name of the im...

ageirSeptember 17, 2018

@artf I don't think you understood me. They are reappearing because they didn't get deleted on the server. all_files are generated via php on page reload, and showing the correct files on the server. The problem is that onRemove isn't triggered at all until I upload a file, then it is triggered. Wh...

artfSeptember 17, 2018

Ah ok probably because your assets are already rendered. Try to apply those changes but inside a plugin

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.