Skip to content

403 Access Forbidden by CSRFProtector: when uploading files #94

Closed
@elieobeid7

Description

@elieobeid7

The structure is the following:

  • index.php - holds the html, redirects to controller.php
  • controller.php - handles the post request and take care of the uploads then redirects to index.php
  • pictures folder, chmod 755
  • CSRFProtector is included in all files, I use the default token csrfp_token

if I fill the form without uploading, everything is fine. If I upload a picture, I get

403 Access Forbidden by CSRFProtector!

I'm on windows 10 64 bit, using Firefox quantum and this library to handle uploads

https://github.com/samayo/bulletproof

Metadata

Metadata

Assignees

Labels

Up For GrabsMeans that workitem associated is up for grabs or looking for contributes to work on thisnext ver

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions