Giter VIP home page Giter VIP logo

Comments (7)

manvari avatar manvari commented on June 3, 2024

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.

gwenhastings avatar gwenhastings commented on June 3, 2024

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.

manvari avatar manvari commented on June 3, 2024

I was getting that error because I hadn't recompiled 0bin. Are you sure you recompiled it after having changed MAX_SIZE?

from 0bin.

gwenhastings avatar gwenhastings commented on June 3, 2024

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.

sametmax avatar sametmax commented on June 3, 2024

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.

gwenhastings avatar gwenhastings commented on June 3, 2024

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:

<script type="text/javascript"> zerobin.max_size = 512000; </script>

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.

gwenhastings avatar gwenhastings commented on June 3, 2024

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)

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.