Giter Site home page Giter Site logo

Download raw about 0bin HOT 7 CLOSED

tygs avatar tygs commented on July 21, 2024
Download raw

from 0bin.

Comments (7)

sametmax avatar sametmax commented on July 21, 2024

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 ?

from 0bin.

Natim avatar Natim commented on July 21, 2024

I think the best way to implement this is to keep the mimetype of the uploaded file.
So on the raw button we can get the the file (download form) with the same content-type.

Then the browser will know if it can display it or ask for downloading.

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

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.

from 0bin.

Natim avatar Natim commented on July 21, 2024

I may have some time on the middle of january but not this week, will see.

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

Cool !

from 0bin.

Natim avatar Natim commented on July 21, 2024

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.

from 0bin.

Natim avatar Natim commented on July 21, 2024

See #17 PR

from 0bin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.