phpMyFAQ icon indicating copy to clipboard operation
phpMyFAQ copied to clipboard

HTTP Error: 401 when trying to upload images

Open HOCO-gawing opened this issue 3 years ago • 3 comments

I am using phpMyFAQ 3.1.11 on CentOS7 with Apache2.4.6 and PHP 8. I'm not sure when this started, but I am unable to upload images. I have no other errors, including adding attachments. When I try to upload an image, I get HTTP Error: 401. I am able to see previously uploaded images and add them fine. I just can't upload now.

HOCO-gawing avatar Mar 08 '23 17:03 HOCO-gawing

Did you try to log out and log in before uploading a image?

thorsten avatar Mar 08 '23 17:03 thorsten

Well, that was an easy fix. Thanks Any idea why this happens? I'm obviously logged in as an admin or I wouldn't be able to edit/create FAQs. What happens that requires me to log out and back in again?

HOCO-gawing avatar Mar 08 '23 18:03 HOCO-gawing

Looks like a session timed out and the CSRF protection caused the 401 error.

thorsten avatar Mar 08 '23 19:03 thorsten