Unable to upload PNG

Unable to upload any PNG on independently hosted cloud setup of discourse. PFA screenshot
Screenshot 2021-05-03 at 6.37.58 PM

Can someone help me with possible solutions or reasons?

1 Like

Can you upload that same png to try.discourse.org?

2 Likes

If @pfaffman’s suggestion does not work, there is most likely a problem with the file itself. Judging by the error message, it sounds like the file is missing the end of file bits so the size cannot be determined. Can you open the file in a photo-editing program? If so, try re-saving it… maybe with adding -edit at the end of the filename. Then try to upload it again.
Can you upload other png’s without any problem? If so, that problem file may indeed be corrupted.

2 Likes

@pfaffman @JimPas Thanks a lot, Ill test this and post my results here.

1 Like

@JimPas @pfaffman The error persists for any image with PNG or JPG extension. The console shows a “Failed to load resource: the server responded with a status of 422 ()”.

1 Like

Can you upload a png on try.discourse.org?

1 Like

Yes. Are there any configuration settings for their usage while setting up discourse?

1 Like

Did you follow Discourse official Standard Installation?

1 Like