Comments (7)
In zerobin/default_settings.py, increase MAX_SIZE.
The default is MAX_SIZE = 1024 * 500 - so the default maximum paste size is 500KB. Change 500 to 1000 for 1MB, 2000 for 2MB, and so on.
Then recompile 0bin.
from 0bin.
Yes I tried that already...MAX_SIZE = 1024 * 16000
on a 1.4mb file getting message Warning! The encrypted file was 4904KB. You have reached the maximum size limit of 500KB.
from 0bin.
I was getting that error because I hadn't recompiled 0bin. Are you sure you recompiled it after having changed MAX_SIZE?
from 0bin.
I rm ed the 0bin directory, then I redid a git clone changed the setting MAX_SIZE in zerobin/default_settings.py and compiled the code.. still the same result did a shift reload plus restarted the browser to no avail..just tried again.. same result..
sigh system is amd64 openbsd5.1 using ports for python
from 0bin.
Could be a bug.
The size is checked on the client side as well. If you view the HTML source code, do you get the proper value in the <head>
? Something like :
<script type="text/javascript">
zerobin.max_size = your_value};
</script>
from 0bin.
On 12/21/13 3:03 AM, sametmax wrote:
<script type="text/javascript"> zerobin.max_size = your_value}; </script>
browswer was shift reloaded on this page both firefox and chrome under OSX were attempted. Same results for both..
from the javascript source in the browser:
from zerobin/default_settings.py:
MAX_SIZE = 1024 * 16000
and a grep -R MAX_SIZE *
shows it being set in zerobin/views/base.tpl:
zerobin.max_size = {{ settings.MAX_SIZE }};
not making sense
gwen
from 0bin.
nailed it.. I had run the pip install for zerobin and had NOT excised it from my lib/python2.7/site-packages
when doing the git clone install instead.. rmed the errant zerobin and all is well.
thanx for the assistance
gwen
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.