DankChat icon indicating copy to clipboard operation
DankChat copied to clipboard

Fix "Paste" behavior for file uploads

Open dogesobaka opened this issue 3 years ago • 10 comments

Expected behavior: After uploading a file and clicking "Paste" button, that button should disappear and not be clickable. Current behavior: After uploading a file and clicking "Paste" button, you can manage to click it multiple times and multiple links get pasted.

dogesobaka avatar Oct 03 '22 16:10 dogesobaka

Hello, i would like to try to fix it is it possible assigne to me ?

NewtonCesarRoncari avatar Oct 06 '22 22:10 NewtonCesarRoncari

Just a heads up, I would first check if the Snackbar has something to fix this behavior by default. If not and the fix involves "hacky" logic I'm not sure if I even want to have this fixed :)

flex3r avatar Oct 07 '22 12:10 flex3r

is on other place ?

https://user-images.githubusercontent.com/31870695/194563084-264a410d-9f34-4a5f-b425-24d64160c448.mp4

trying to upload a file gives me error 500

https://user-images.githubusercontent.com/31870695/194569944-b382ed4d-9f99-460c-9ef7-72cec3dea5b9.mp4

NewtonCesarRoncari avatar Oct 07 '22 13:10 NewtonCesarRoncari

if you find it unfeasible at the moment I can try to a look on #341

NewtonCesarRoncari avatar Oct 07 '22 13:10 NewtonCesarRoncari

The current default image uploader is not working that is current. It's also a 3rd party service, so I don't have any influence on that. In the Tools settings you can set a custom image uploader, e.g. this imgur configuration: https://wiki.chatterino.com/Image%20Uploader/

flex3r avatar Oct 07 '22 21:10 flex3r

i set up the custom image uploader, but still work for me that snackbar disappear

https://user-images.githubusercontent.com/31870695/194675401-17008d3d-fdd8-42f9-952c-5d58589ae151.mp4

NewtonCesarRoncari avatar Oct 07 '22 23:10 NewtonCesarRoncari

Looks like your configuration is not quite correct. You can also use this uploader with the exact Chatterino configuration: https://kappa.lol/uploaders

flex3r avatar Oct 10 '22 07:10 flex3r

I believe still work to me

https://user-images.githubusercontent.com/31870695/194960887-9cd9ec8e-1b14-412b-ab05-0f7338116965.mp4

NewtonCesarRoncari avatar Oct 10 '22 22:10 NewtonCesarRoncari

You are missing the fields for image link and deletion link in the configuration

flex3r avatar Oct 11 '22 07:10 flex3r

my bad, i had never used image uploader before, now is correct but, still work the snack bar with paste message

https://user-images.githubusercontent.com/31870695/195388472-e9715f17-c2b0-4d2e-aa28-f135c44ee140.mp4

NewtonCesarRoncari avatar Oct 12 '22 15:10 NewtonCesarRoncari