JoelBesada / pasteboard

Clipboard and drag & drop image sharing web app
http://pasteboard.co
637 stars 144 forks source link

isImageOwner and Delete #28

Open ThaMunsta opened 10 years ago

ThaMunsta commented 10 years ago

Love this script. Very easy to share screen shots

Not sure if these problems are related to each other but after uploading an image the delete button doesn't show up. When I change the if statement to ! isImageOwner it will show the delete button but clicking it and confirming delete doesn't remove the image. I get a 403 error on post for /Images/[imagename].jpg/delete

Thanks!

ThaMunsta commented 9 years ago

I've determined this is a cookie issue. Not totally sure why the page doesn't want to create a cookie for me but I removed some of the checks so I can delete images. Not too worried security around that feature since I'm the only one using it lol Tried installing npm cookie-parser since I saw reference to that but no help. Meh