-
Notifications
You must be signed in to change notification settings - Fork 198
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
Download raw #16
Comments
This is not possible the same way github does it: we don't have a raw file since everything is is encrypted. Is putting it in a textarea enough ? In that case the clone button already does that. If not, what do you need the raw form for so we can try to implement something close enough ? |
I think the best way to implement this is to keep the mimetype of the uploaded file. Then the browser will know if it can display it or ask for downloading. |
I see. Yeah, it's an interesting idea. I have no time to implement that for now but I do like this idea (it's a wonderful complement to the upload button). If I find the time to work on 0bin again, I'll definitly add it to it. I would also accept pull request for this (please just don't add another buttong, turn "clone" into a "more" pulldown.) if you need this quickly. |
I may have some time on the middle of january but not this week, will see. |
Cool ! |
Actually, the FileReader API provide a readAsDataURL then everything is already on. mimetype and base64 data that can be download. I will transform the Clone button in Download button when looking at an image paste. |
See #17 PR |
A download button to see the paste as raw.
The text was updated successfully, but these errors were encountered: