View Issue Details

IDProjectCategoryView StatusLast Update
0024656mantisbtattachmentspublic2018-08-27 02:58
ReporterAraya Chaladthoi Assigned Toatrol  
PriorityurgentSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Product Version2.16.0 
Summary0024656: Mantis can't upload Files
Description

I can' t upload file and it show error that show in My pic.

Steps To Reproduce
  1. Go to report issue
  2. Click "Upload file image"
  3. Select image and push
    open Dev tool ---> It will show error in console
  4. Click "Add Note"
Additional Information

result :

  1. Console log will show error message
    "Refused to load the image 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAeAB4AAD/4QA6RXhpZgAATU0AKgAAAAgAA1EQAAEAAAABAQAAAFERAAQAAAABAAAAAF...' because it violates the following Content Security Policy directive: "img-src 'self'"."

  2. It will show Error 500

TagsNo tags attached.
Attached Files
My pic 1.png (105,769 bytes)   
My pic 1.png (105,769 bytes)   
My pic 2.png (116,362 bytes)   
My pic 2.png (116,362 bytes)   
config.png (18,324 bytes)   
config.png (18,324 bytes)   

Activities

Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:25

reporter   ~0060370

Last edited: 2018-08-08 06:27

How can I do? What's wrong in my config???

atrol

atrol

2018-08-08 06:50

developer   ~0060371

I can' t upload file

I assume this is not true.
After clicking add note, I expect that the file has been attached.

What you see is just a minor issue.
You get the error just because Mantis is not able to show you a preview of the attached image.

Can you confirm?

Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:54

reporter   ~0060373

Last edited: 2018-08-08 06:58

error can't show pic Now I understand
But I can't upload file It show error like that (in my pic2)
what should I do?

Thank you

Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:56

reporter   ~0060374

I had run admin/check/index.php for check

test.png (56,902 bytes)   
test.png (56,902 bytes)   
atrol

atrol

2018-08-08 07:02

developer   ~0060375

There is nothing more to say than what the message is telling:
Install the PHP fileinfo extension http://php.net/manual/en/fileinfo.installation.php

atrol

atrol

2018-08-17 17:47

developer   ~0060451

Araya Chaladthoi,

You did not provide feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue if there are still issues after installing the PHP fileinfo extension