Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

thumbnail of uploaded PNG files is not shown in the channel and picture doesn't load on click

Open FINIUS opened this issue 10 years ago • 18 comments

When uploading a PNG to a channel it shows no thumbnail of the content. Furthermore when clicking on it, it shows a grey loading circle forever and ever unbenannt

FINIUS avatar Feb 16 '16 13:02 FINIUS

Is this still happening?

engelgabriel avatar Mar 18 '16 21:03 engelgabriel

seems to be fixed for now, but now thumbs are really big - at least those from github integrations messages

manuelbachl avatar Mar 18 '16 22:03 manuelbachl

unbenannt-4

manuelbachl avatar Mar 18 '16 22:03 manuelbachl

Issue seems to be back - pulled newest dev - in client the images still dissapear

manuelbachl avatar Mar 18 '16 23:03 manuelbachl

@manuelbachl is this in the desktop app?

geekgonecrazy avatar Mar 18 '16 23:03 geekgonecrazy

yes on os x

manuelbachl avatar Mar 18 '16 23:03 manuelbachl

@manuelbachl I think this is desktop specific. I get this too @engelgabriel happens frequently on the demo server. The box shows up where the image is supposed to be. But the image doesn't actually finish loading. I'm thinking some kind of security issue in the desktop app.

geekgonecrazy avatar Mar 18 '16 23:03 geekgonecrazy

really weird is the fact, that sometimes the image appears. But (without being able to reprosuce or find out any rule this behaviour follows) then it appears. somtimes immideately, sometimes after a few seconds, sometimes when uploading another image

manuelbachl avatar Mar 18 '16 23:03 manuelbachl

ok strange behaviour. I'm running both instances in the same client - our server and the demo server, both on the same build afaik. in the demo server images are shown

manuelbachl avatar Mar 18 '16 23:03 manuelbachl

Demo is now using S3 for file storage, just for info

engelgabriel avatar Mar 18 '16 23:03 engelgabriel

@manuelbachl can you open the dev tools and see if you see any errors come up when the image doesn't show?

geekgonecrazy avatar Mar 18 '16 23:03 geekgonecrazy

relevent logs:

<censored for privacy>/overview.png Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR
<censored for privacy>/Clipboard Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR
<censored for privacy>/overview.png Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR

geekgonecrazy avatar Mar 19 '16 00:03 geekgonecrazy

This is probably related to #2545 @finius are you using GridFS as file storage? check at Administration > File Upload > Storage Type.

sampaiodiego avatar Mar 21 '16 13:03 sampaiodiego

This should be fixed on version 0.23.0 Please reopen otherwise.

engelgabriel avatar Mar 22 '16 12:03 engelgabriel

Problem still exists in browser b6e13a0c

Version 0.36.0

dimti avatar Apr 05 '17 06:04 dimti

@dimti a lot has changed between 0.36.0 and our current release. Can you let us know if you see it in the latest release?

geekgonecrazy avatar Apr 05 '17 15:04 geekgonecrazy

I updated to 0.52.0 Problem still exists minimum on two separated members in my chat server. Images not showing, and in addition, member unable to upload any files. c68ecd2b

dimti avatar Apr 18 '17 02:04 dimti

Hi,

OS : Windows 10 Client : Chrome 65.0.3325.181, Chrome Androïd (One Plus 3T), Win10 App Storage : GridFS

Got it regularly (on a weekly-basis) image When it occurs, it affects all of my clients (desktop, Windows 10 app, mobile).

In my case, seems to only occur to the uploader of the picture, though. Got this error in console (unsure whether this is related)

Uncaught TypeError: Cannot set property 'input' of undefined
    at Object.focus .js-input-message (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:245)
    at 53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79
    at Function.e._withTemplateInstanceFunc (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79)
    at f.View.<anonymous> (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79)
    at 53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79
    at Object.f._withCurrentView (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79)
    at f._DOMRange.<anonymous> (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79)
    at HTMLTextAreaElement.<anonymous> (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:79)
    at HTMLElement.dispatch (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:11)
    at HTMLElement.h.handle (53456bb8cd8916d1497d74fe0612b7b098ecab1a.js?meteor_js_resource=true:11)

guillaumegarcia13 avatar Apr 13 '18 20:04 guillaumegarcia13