Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isImageOwner and Delete #28

Open
ThaMunsta opened this issue Oct 2, 2014 · 1 comment
Open

isImageOwner and Delete #28

ThaMunsta opened this issue Oct 2, 2014 · 1 comment

Comments

@ThaMunsta
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant