Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lat4732's avatar
Level 12

Iframe & Laravel

Hey!

I'm trying to implement this plugin into my summernote (Editor). The problem is that it's working with iframe and the requested file is inside public/assets/plugins/summernote/plugins/filemanager.php. How can I implement this route inside the iframe because now I'm getting 404 when trying this:

<iframe src="/assets/plugins/summernote/plugins/filebrowser/filemanager.php" id="editoverlayiframe" class="editoverlayiframe"></iframe>
0 likes
4 replies
click's avatar

You mention two different paths:

/assets/plugins/summernote/plugins/filemanager.php
/assets/plugins/summernote/plugins/filebrowser/filemanager.php
lat4732's avatar
Level 12

@click It is all just an example to understand that I need to access a file from the public folder inside an iframe. Leave the paths I mentioned, is that possible?

kokoshneta's avatar
Level 27

How can I implement this route inside the iframe?

What exactly do you mean by this? You can’t ‘implement a route inside an iframe’, that doesn’t make any sense. You implement a route in your PHP code, by adding it to your routes and making sure it returns some sort of view. You can load a specific page (or indeed a route) in an iframe, but you can’t implement it in an iframe.

Also, the URL you have in your iframe (probably) isn’t a Laravel route, just a regular PHP file. You don’t need Laravel at all to open those.

If you’re getting a 404, that’s presumably because the file in question doesn’t exist. One reason why it might not exist would be because you wrote the URL wrong – and indeed, as @click says, the URL you use in your iframe’s src attribute is not the same URL you use in the text in your question.

So first things first: does http(s)://{your-domain}/assets/plugins/summernote/plugins/filebrowser/filemanager.php actually exist?

lat4732's avatar
Level 12

@click @kokoshneta Looks like you both are right. The path was wrong. Now it's loading, but I'm getting 412 Precondition Failed on the AJAX requests that are performed by the script. What might this be?

Please or to participate in this conversation.