Uploading error: This file is not allowed for security reasons

What issue or error are you experiencing?

I can’t upload any media(photos, videos, etc) It says: This file is not allowed for security reasons


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:
    Version 8.2.1+6583

  • Operating System (OS) and OS version:
    Windows 11 Pro


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-lightning.log (123.7 KB)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hello @foxeslink - welcome to the Local community + thank you for your question! :wave:

Are you by chance using Elementor on this site?

If you are using Elementor, it looks like you can enable something called “unfiltered uploads” from your advanced settings to allow you to upload files that are currently blocked by the plugin.

I may suggest you take a look at this: Settings » Elementor

If you’re not using Elementor we’ll want to dig a little deeper.

Thanks!

Sam

1 Like

Hello,

Yes I’m using it, but unfortunately that was already enabled. I tried to disable and enable again but got the same issue. It’s strange because a couple days ago I could upload with any issues

Hello there, I have same issue can’t upload any file since yesterday

Probably it’s a local problem or maybe an elementor issue

i found solution,go install older version,this one got bug.

1 Like

You mean local or elementor?

elementor install older version

Hi @foxeslink -

Please let us know if downgrading Elementor fixes this problem for you.

Thank you!

Sam

2 Likes

For some reason going back to any other version of elementor is not solving it for me. My unfiltered is Enabled. Any other ways to fix? I want to build a site for a project but it is saying this file is not allowed for security reasons

Turning the Elementor back is only making the editor unable to be used.

Hi @anthonyfranck

If it’s purely an Elementor issue there isn’t much we can do. Could you provide some more details to help us take a further look?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

I am on Windows 10 Home, Local Version Version 8.2.1+6583

I can try a different laptop or a Mac. Is this tool intended only for mac OS?

Hi @anthonyfranck -

Local is not only for mac. You can find the releases for your OS here:

Sam

I have the same issue. First Elementor support told me to edit the wp-config.php file which I had already. Then to told me to contact my host.

Well, my website is live now, I dont have the problem any more but there’s a way around to trick the issue. You can go to media-add media, on the WordPress dashboard. Then you can select the media you Uploaded on elementor.

2 Likes

hi,

I’m using windows 10 + localwp Version 8.2.1+6583
and same problem here… after last update from wplocal and elementor plugin 3.19.2
I cannot upload jpg, png, or any other file using elementor editor because I got the
message: when I’m using elementor desing and upload files.
This file is not allowed for security reasons
If I upload outside elementor the upload worked…but this is a bad solution.
If someone could help, it will help a lot because I’m in troubles with this problem

1 Like

Thats bad, im also having this issue after the update and cant upload any type of file, not even .png or .jpg.
I also downgraded elementor, the other plugins i was using and even Local itself but nothing works in the new sites i create.
funny enough, in the older projects i have everything is working accordingly.

I tried plugins to manage and give access to all types of files to be uploaded, put a code on wp-config.php file, but it doesnt work as well.

the only method that works is adding media directly from the dashboard, but thats not practical.

my only resources of studying are the old sites hosted on local.

hope this gets fixed soon

1 Like

Same here. Older sites are ok, but the last couple I have added I get this error. I can upload from media section of WP but not from within Elementor directly. None of the fixes I have seen online have worked.

1 Like