View Issue Details

IDProjectCategoryView StatusLast Update
0024656mantisbtattachmentspublic2018-08-17 17:47
ReporterAraya ChaladthoiAssigned Toatrol 
PriorityurgentSeverityfeatureReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.16.0 
Target VersionFixed in Version 
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.

Activities

Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:23

reporter  

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)
Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:25

reporter   ~0060370

Last edited: 2018-08-08 06:27

View 2 revisions

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

Araya Chaladthoi

Araya Chaladthoi

2018-08-08 06:28

reporter  

config.png (18,324 bytes)
config.png (18,324 bytes)
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

View 2 revisions

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

Issue History

Date Modified Username Field Change
2018-08-08 06:23 Araya Chaladthoi New Issue
2018-08-08 06:23 Araya Chaladthoi File Added: My pic 1.png
2018-08-08 06:23 Araya Chaladthoi File Added: My pic 2.png
2018-08-08 06:25 Araya Chaladthoi Note Added: 0060370
2018-08-08 06:27 Araya Chaladthoi Note Edited: 0060370 View Revisions
2018-08-08 06:28 Araya Chaladthoi File Added: config.png
2018-08-08 06:50 atrol Status new => feedback
2018-08-08 06:50 atrol Note Added: 0060371
2018-08-08 06:54 Araya Chaladthoi Note Added: 0060373
2018-08-08 06:54 Araya Chaladthoi Status feedback => new
2018-08-08 06:56 Araya Chaladthoi File Added: test.png
2018-08-08 06:56 Araya Chaladthoi Note Added: 0060374
2018-08-08 06:58 Araya Chaladthoi Note Edited: 0060373 View Revisions
2018-08-08 07:02 atrol Status new => feedback
2018-08-08 07:02 atrol Note Added: 0060375
2018-08-17 17:47 atrol Assigned To => atrol
2018-08-17 17:47 atrol Status feedback => resolved
2018-08-17 17:47 atrol Resolution open => no change required
2018-08-17 17:47 atrol Note Added: 0060451