Grav-plugin-admin: Type: file in blueprint fails when deleting/removing file, throws AJAX error

Created on 10 Jan 2017  ·  2Comments  ·  Source: getgrav/grav-plugin-admin

Using type: file on a page blueprint to enable file uploads works perfectly for uploading, but on clicking the X (and confirming in the modal) to remove/delete the file, throws “Invalid AJAX Response” error. The action will remove the reference to the file from the page.md header, but will not remove the file from the server.
Users can always use type: pagemedia, but type: file offers additional parameters which are really useful.

bug replicated

Most helpful comment

Fixed! Thanks for reporting

All 2 comments

I'm having the same issue. When looking into the AJAX request, the response seems to be empty: {}.

Fixed! Thanks for reporting

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fourroses666 picture fourroses666  ·  4Comments

illycz picture illycz  ·  5Comments

Quy picture Quy  ·  6Comments

artofthesmart picture artofthesmart  ·  4Comments

darkroastcreative picture darkroastcreative  ·  4Comments