Image upload does not work in EditorJS
Fix 'Sorry, you are not allowed to upload this file type' and other image upload errors in the EditorJS field.
Users try to add an image in the EditorJS field, but the upload fails. Here are the usual causes.
“Sorry, you are not allowed to upload this file type”
WordPress refuses the file type. Check:
- The file is a normal image: JPG, PNG, GIF or WebP.
- SVG files are always refused for security.
- A security plugin or the host may block some types. Try a JPG first.
Upload fails for some users only
- The user role needs the right to upload files. The plugin gives it to Subscribers when it is activated. If you use custom roles, give them the
upload_filescapability (for example with the User Role Editor plugin). - If you deactivated and activated the plugin again, check that the right is still there.
Large photos fail
The server has an upload size limit. Check Media → Add New Media File: it shows “Maximum upload file size”. Ask your host to increase upload_max_filesize and post_max_size, or ask users to resize photos.
The uploads folder is not writable
If no upload works anywhere in WordPress (also in Media), the wp-content/uploads folder is not writable. Ask your host to fix the folder permissions.