Comments (7)
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.
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.
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.
I may have some time on the middle of january but not this week, will see.
from 0bin.
Cool !
from 0bin.
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.
See #17 PR
from 0bin.
Related Issues (20)
- [Feature request] Link "copy URL to clipboard"
- How to build from source and start a local server? HOT 5
- --version does not work
- document admin feature
- Security concern HOT 4
- insecureHash HOT 1
- How could I disable console logging? HOT 4
- 0bin.net parked HOT 1
- unable to start or setup
- 0bin.net - Down? HOT 5
- Can't disable `Never expire` option HOT 1
- Website unreachable HOT 2
- Replace the `รธbin.net` by our own HOT 1
- Website not receiving pastes HOT 3
- Website not allow paste to upload
- Frontend is running in dev mode
- Server returns 502 Bad Gateway HOT 1
- 0bin.net is taking too long to respond. HOT 1
- 0bin.net is down? HOT 2
- Is the 0bin.net data all lost? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 0bin.